LDragAndDrop is a PowerPlant mix-in class that is used for adding drag and drop features to a Pane.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Operation:
LDragAndDrop inherits from LDropArea and is a concrete implementation of that class. A pane that supports drag and drop should inherit from LDragAndDrop, not LDropArea.
For more information on drag and drop using PowerPlant, refer to PowerPlant Advanced Topics.
Source files:
Ancestors:
Purpose:
This creates a drag and drop object from the passed-in parameters.
Access:
Prototype:
LDragAndDrop( WindowPtr inMacWindow,Parameters:
LPane *inPane );
The parameters for this constructor are:
Purpose:
Set up a local coordinate system and clipping region for a drop area.
Access:
Prototype:
virtual void FocusDropArea();Parameters:
Return:
Purpose:
Hilite a drop area to indicate that it can accept the current drag.
For a drag and drop, the drop area is the Frame of its associated Pane inset by one pixel to account for the border which usually surrounds a drop-capable Pane.
Access:
Prototype:
virtual void HiliteDropArea(Parameters:
DragReference inDragRef);
The parameter for this method is:
Return:
Purpose:
Check whether a Point, in global coordinates, is inside a drop area.
Access:
Prototype:
virtual Boolean PointInDropArea( Point inPoint );Parameters:
The parameter for this method is:
Return:
Boolean true if the point is within the drop area, else false.
Purpose:
This data member stores the Pane that we're operating with.
Access:
Prototype:
LPane *mPane;