#include <sgtree.h>
Public Attributes | |
DocCoord | Position |
INT32 | ClosestSoFar |
SGDisplayNode * | Claimant |
This structure is passed down through the SuperGallery Display Tree by the SGDisplayNode::HandleEvent method, when processing CLAIMPOINT events. This event allows the parent gallery to determine which item lies under the mouse pointer, etc (i.e. hit-testing for drags)
Position contains the x,y position, in MILLIPOINTS, of a point to be hit-tested.
ClosestSoFar records the distance from the nearest edge of the FormatRect of Claimant
Any visible display node which contains the given point inside its FormatRect should set (Claimant = this), and return TRUE.
Otherwise, if the node is closer to the point than 'ClosestSoFar' then they should set ClosestSoFar to this distance, set Claimant = this, and return FALSE to allow the rest of the tree to hit test the point.
Definition at line 462 of file sgtree.h.
|
|
|
|
|
|