Class: Gtk::DragSource
- Inherits:
-
GestureSingle
- Object
- EventController
- Gesture
- GestureSingle
- Gtk::DragSource
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#actions ⇒ Gdk::DragAction
The actions that are supported by drag operations from the source.
-
#actions=(actions) ⇒ Gdk::DragAction
The actions that are supported by drag operations from the source.
-
#content ⇒ Gdk::ContentProvider
The data that is offered by drag operations from this source.
-
#content=(content) ⇒ Gdk::ContentProvider
The data that is offered by drag operations from this source.
-
#drag ⇒ Gdk::Drag
Returns the underlying
GdkDragobject for an ongoing drag. -
#drag_cancel ⇒ nil
Cancels a currently ongoing drag operation.
-
#initialize ⇒ Gtk::DragSource
constructor
Creates a new
GtkDragSourceobject. -
#set_icon(paintable, hot_x, hot_y) ⇒ nil
Sets a paintable to use as icon during DND operations.
Methods inherited from GestureSingle
#button, #button=, #current_button, #current_sequence, #exclusive, #exclusive=, #exclusive?, #touch_only, #touch_only=, #touch_only?
Methods inherited from Gesture
#device, #get_bounding_box, #get_bounding_box_center, #get_last_event, #get_point, #get_sequence_state, #group, #handles_sequence, #is_active, #is_grouped_with, #is_recognized, #last_updated_sequence, #n_points, #n_points=, #sequences, #set_sequence_state, #state=, #ungroup
Methods inherited from EventController
#current_event, #current_event_device, #current_event_state, #current_event_time, #name, #name=, #propagation_limit, #propagation_limit=, #propagation_phase, #propagation_phase=, #reset, #static_name=, #widget, #widget=
Constructor Details
#initialize ⇒ Gtk::DragSource
Creates a new GtkDragSource object.
Instance Method Details
#actions ⇒ Gdk::DragAction
The actions that are supported by drag operations from the source.
Note that you must handle the [signalGtk.DragSource::drag-end] signal if the actions include %GDK_ACTION_MOVE.
#actions=(actions) ⇒ Gdk::DragAction
The actions that are supported by drag operations from the source.
Note that you must handle the [signalGtk.DragSource::drag-end] signal if the actions include %GDK_ACTION_MOVE.
#content ⇒ Gdk::ContentProvider
The data that is offered by drag operations from this source.
#content=(content) ⇒ Gdk::ContentProvider
The data that is offered by drag operations from this source.
#drag ⇒ Gdk::Drag
Returns the underlying GdkDrag object for an ongoing drag.
#drag_cancel ⇒ nil
Cancels a currently ongoing drag operation.
#set_icon(paintable, hot_x, hot_y) ⇒ nil
Sets a paintable to use as icon during DND operations.
The hotspot coordinates determine the point on the icon that gets aligned with the hotspot of the cursor.
If paintable is nil, a default icon is used.
This function can be called before a drag is started, or in a [signalGtk.DragSource::prepare] or [signalGtk.DragSource::drag-begin] signal handler.