Public Member Functions | |
override bool | GetData () |
override DragResult | OnData (int x, int y, DragResult def) |
override bool | OnDrop (int x, int y) |
abstract bool | OnDropText (int x, int y, string text) |
TextDropTarget () |
wx.TextDropTarget.TextDropTarget | ( | ) |
override bool wx.TextDropTarget.GetData | ( | ) | [virtual] |
This method may only be called from within OnData
. By default, this method copies the data from the drop source to the wxDataObject associated with this drop target, calling its wx.DataObject.SetData method.
Reimplemented from wx.DropTarget.
override DragResult wx.TextDropTarget.OnData | ( | int | x, | |
int | y, | |||
DragResult | def | |||
) | [virtual] |
Called after OnDrop() returns true. By default this will usually GetData() and will return the suggested default value def.
x | The x coordinate of the mouse. | |
y | The y coordinate of the mouse. | |
def | Suggested default for return value. Determined by SHIFT or CONTROL key states. |
Implements wx.DropTarget.
override bool wx.TextDropTarget.OnDrop | ( | int | x, | |
int | y | |||
) | [virtual] |
Called when the user drops a data object on the target. Return false to veto the operation.
x | The x coordinate of the mouse. | |
y | The y coordinate of the mouse. |
Reimplemented from wx.DropTarget.
abstract bool wx.TextDropTarget.OnDropText | ( | int | x, | |
int | y, | |||
string | text | |||
) | [pure virtual] |
Override this function to receive dropped text.
x | The x coordinate of the mouse. | |
y | The y coordinate of the mouse. | |
text | The data being dropped: a string. |