Public Member Functions | |
CP_MouseTracker (CP_View *inDestPane, trackerProcPtr inTrackingProcPtr, void *inData=NULL, trackerProcPtr inPreTrackingProcPtr=NULL, trackerProcPtr inPostTrackingProcPtr=NULL) | |
virtual | ~CP_MouseTracker () |
UInt32 | GetTrackDelay () |
SInt32 * | GetData () |
CP_Point | GetLastMouseLocation () |
void | SetTrackDelay (UInt32 inTrackDelay) |
void | SetData (void *inData) |
virtual void | TrackMouse (CP_Point &inStartLocation) |
Protected Member Functions | |
virtual void | OnPreTrackMouse (CP_Point &inLocation) |
virtual void | OnTrackingMouse (CP_Point &inLocation) |
virtual void | OnPostTrackMouse (CP_Point &inLocation) |
Protected Attributes | |
CP_View * | fDestView |
void * | fData |
UInt32 | fTrackingDelay |
trackerProcPtr | fPreTrackingProcPtr |
trackerProcPtr | fTrackingProcPtr |
trackerProcPtr | fPostTrackingProcPtr |
CP_Point | fLastMouseLocation |
|
Constructor.
|
|
Destructor. |
|
Return the delay used before calling the OnTrackingMouse callback. |
|
Return any data associated with this object. |
|
Return the last location of the mouse. |
|
Set the tracking delay. |
|
Set any data associated with this object. This data is passed to all of the tracking callbacks. |
|
MacOS routine to track the mouse while the mouse is down. This routine will call the above routines, which in turn call your pre, during and post tracking callbacks.
|
|
Called just before we enter the main mouse tracking loop. The routine calls your pre tracking procedure.
|
|
Called during mouse tracking. This routine calls your tracking procedure continuously while the mouse is down.
|
|
Called after the mouse is released. The routine calls your post tracking procedure.
|
|
The destination pane we are tracking in. |
|
Data associated with this object. |
|
The delay between tracking calls. |
|
Callback to a routine called just before we track the mouse. |
|
Callback to a routine called continuously during tracking. |
|
Callback to a routine called after tracking. |
|
Last location of the mouse. |