Class: Gdk::DragContext
- Inherits:
-
Object
- Object
- Gdk::DragContext
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#actions ⇒ Gdk::DragAction
Determines the bitmask of actions proposed by the source if gdk_drag_context_get_suggested_action() returns %GDK_ACTION_ASK.
-
#dest_window ⇒ Gdk::Window
Returns the destination window for the DND operation.
-
#device ⇒ Gdk::Device
Returns the Gdk::Device associated to the drag context.
-
#device=(device) ⇒ nil
Associates a Gdk::Device to context, so all Drag and Drop events for context are emitted as if they came from this device.
-
#drag_window ⇒ Gdk::Window
Returns the window on which the drag icon should be rendered during the drag operation.
-
#list_targets ⇒ GLib::List
Retrieves the list of targets of the context.
-
#manage_dnd(ipc_window, actions) ⇒ TrueClass
Requests the drag and drop operation to be managed by context.
-
#protocol ⇒ Gdk::DragProtocol
Returns the drag protocol that is used by this context.
-
#selected_action ⇒ Gdk::DragAction
Determines the action chosen by the drag destination.
-
#set_hotspot(hot_x, hot_y) ⇒ nil
Sets the position of the drag window that will be kept under the cursor hotspot.
-
#source_window ⇒ Gdk::Window
Returns the Gdk::Window where the DND operation started.
-
#suggested_action ⇒ Gdk::DragAction
Determines the suggested drag action of the context.
Instance Method Details
#actions ⇒ Gdk::DragAction
Determines the bitmask of actions proposed by the source if gdk_drag_context_get_suggested_action() returns %GDK_ACTION_ASK.
#dest_window ⇒ Gdk::Window
Returns the destination window for the DND operation.
#device ⇒ Gdk::Device
Returns the Gdk::Device associated to the drag context.
#device=(device) ⇒ nil
Associates a Gdk::Device to context, so all Drag and Drop events for context are emitted as if they came from this device.
#drag_window ⇒ Gdk::Window
Returns the window on which the drag icon should be rendered during the drag operation. Note that the window may not be available until the drag operation has begun. GDK will move the window in accordance with the ongoing drag operation. The window is owned by context and will be destroyed when the drag operation is over.
#list_targets ⇒ GLib::List
Retrieves the list of targets of the context.
#manage_dnd(ipc_window, actions) ⇒ TrueClass
Requests the drag and drop operation to be managed by context. When a drag and drop operation becomes managed, the Gdk::DragContext will internally handle all input and source-side Gdk::EventDND events as required by the windowing system.
Once the drag and drop operation is managed, the drag context will emit the following signals:
-
The Gdk::DragContext::action-changed signal whenever the final action to be performed by the drag and drop operation changes.
-
The Gdk::DragContext::drop-performed signal after the user performs the drag and drop gesture (typically by releasing the mouse button).
-
The Gdk::DragContext::dnd-finished signal after the drag and drop operation concludes (after all Gdk::Selection transfers happen).
-
The Gdk::DragContext::cancel signal if the drag and drop operation is finished but doesn’t happen over an accepting destination, or is cancelled through other means.
#protocol ⇒ Gdk::DragProtocol
Returns the drag protocol that is used by this context.
#selected_action ⇒ Gdk::DragAction
Determines the action chosen by the drag destination.
#set_hotspot(hot_x, hot_y) ⇒ nil
Sets the position of the drag window that will be kept under the cursor hotspot. Initially, the hotspot is at the top left corner of the drag window.
#source_window ⇒ Gdk::Window
Returns the Gdk::Window where the DND operation started.
#suggested_action ⇒ Gdk::DragAction
Determines the suggested drag action of the context.