SGClaimPointInfo Struct Reference

#include <sgtree.h>

List of all members.

Public Attributes

DocCoord Position
INT32 ClosestSoFar
SGDisplayNodeClaimant


Detailed Description

Comment: MonoOn typedef struct { DocCoord Position; INT32 ClosestSoFar; SGDisplayNode *Claimant; } SGMouseInfo; MonoOff

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.

See also:
SGDisplayGroup::HandleEvent; SGEventType

Definition at line 462 of file sgtree.h.


Member Data Documentation

SGDisplayNode* SGClaimPointInfo::Claimant
 

Definition at line 466 of file sgtree.h.

INT32 SGClaimPointInfo::ClosestSoFar
 

Definition at line 465 of file sgtree.h.

DocCoord SGClaimPointInfo::Position
 

Definition at line 464 of file sgtree.h.


The documentation for this struct was generated from the following file:
Generated on Sat Nov 10 04:00:56 2007 for Camelot by  doxygen 1.4.4