Inheritance diagram for CP_M_DragTarget:
Drag Target | |
virtual void | OnDragEnter (CP_DragDrop &inDragDrop, bool inDragHasLeftSender) |
virtual void | OnDragLeave (CP_DragDrop &inDragDrop) |
virtual void | OnDragTrack (CP_DragDrop &inDragDrop) |
static CP_M_DragTarget * | FindDragTarget (OSWindow inOSWindow, CP_Point &inMouseLocation, CP_DragDrop &inDragDrop) |
Public Member Functions | |
virtual void | HandleDragReceive (CP_DragDrop &) |
Constructor / Destructor | |
CP_M_DragTarget () | |
Constructor. | |
virtual | ~CP_M_DragTarget () throw () |
Destructor. | |
Protected Member Functions | |
virtual bool | OnCanAcceptDrag (UInt32 inItem, CP_DragDrop &inDragDrop)=0 |
virtual CP_Region | GetDropRegion ()=0 |
virtual bool | PtInDropArea (CP_Point &inGlobalPoint) |
Protected Attributes | |
CP_Window * | fWindow |
bool | fDropAreaIsHilited |
bool | fCanAcceptCurrentDrag |
Static Protected Attributes | |
static CP_DragTarget_List * | fsDragTargetList = NULL |
static CP_M_DragTarget * | fsCurrentDragTarget = NULL |
static bool | fsDragHasLeftSender = false |
|
Constructor.
|
|
Destructor.
|
|
Called when the user tries to drop an object on this drag target. For each item inn the drag and drop, OnAcceptDrag will be called, which is the method you should override to determine if the object can be dropped onto this target. If any of the items are not accepted by the object, then false is returned.
|
|
Called when the drag enters a new drop area. This is used to show the MacOS default drag hiliting.
|
|
Called when the drag leaves a drop area. This is used to remove the MacOS default drag hiliting.
|
|
Adds the passed in CP_M_DragTarget to the global list of drag targets that this object maintains. This is the list of objects that get checked during a drag and drop operation to see if the object can receive the dropped object when the mouse if over the target object.
|
|
Removes a previously added CP_M_DragTarget object. This is called for you automatically when aa CP_M_DragTarget object is destroyed. However you can call this at other times, if you want to remove an object as a postential drop target for drag and drops.
|
|
Reimplemented in CP_View_Imp. |
|
Callback to the MacOS Drag Manager that is called during a drag and drop tracking operation.
|
|
Callback to the MacOS Drag Manager when the user has dropped an object over a drag target.
|
|
Finds and returns the CP_M_DragTarget that is in the passed in OSWindow at the passed in mouse location. The mouse location is in global coordinates. If no target was found at the passed in location, then NULL is returned.
|
|
Called when the user has entered a registered drag target object.
|
|
Called when the user is has left the current drag target object.
|
|
Called when the user is tracking or moving the mouse during a drag and drop operationn.
|
|
|
|
Implemented in CP_View_Imp. |
|
Returns true if the passed in global point is over this drag target.
|
|
Called when the user is dragging an object around in a window. This is called from the MacOS Drag Manager callback.
|
|
|
|
|
|
|
|
|
|
|
|
|