Class: Wx::TextDropTarget

Inherits:
DropTarget show all
Defined in:
lib/wx/doc/gen/drag_drop.rb

Overview

A predefined drop target for dealing with text data.

Category: Clipboard and Drag & Drop

See Also:

Requires:

  • USE_DRAG_AND_DROP

Instance Method Summary collapse

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

#initializeWx::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.

Parameters:

  • x (Integer)

    The x coordinate of the mouse.

  • y (Integer)

    The y coordinate of the mouse.

  • data (String)

    The data being dropped: a String.

Returns:

  • (Boolean)


326
# File 'lib/wx/doc/gen/drag_drop.rb', line 326

def on_drop_text(x, y, data) end