Class: Wx::TextDropTarget
- Inherits:
-
DropTarget
- Object
- DropTarget
- Wx::TextDropTarget
- Defined in:
- lib/wx/doc/gen/drag_drop.rb
Overview
A predefined drop target for dealing with text data.
Category: Clipboard and Drag & Drop
Instance Method Summary collapse
-
#initialize ⇒ Wx::TextDropTarget
constructor
Constructor.
-
#on_drop_text(x, y, data) ⇒ Boolean
Override this function to receive dropped text.
Methods inherited from DropTarget
#get_data, #get_data_object, #get_default_action, #on_data, #on_drag_over, #on_drop, #on_enter, #on_leave, #set_data_object, #set_default_action
Constructor Details
#initialize ⇒ Wx::TextDropTarget
Constructor.
317 |
# File 'lib/wx/doc/gen/drag_drop.rb', line 317 def initialize; end |
Instance Method Details
#on_drop_text(x, y, data) ⇒ Boolean
Override this function to receive dropped text.
Return true to accept the data, or false to veto the operation.
326 |
# File 'lib/wx/doc/gen/drag_drop.rb', line 326 def on_drop_text(x, y, data) end |