Import line: | Gdk = imports.gi.Gdk; |
GIR File: | Gdk-3.0.gir |
C documentation: | GdkDragAction |
Enum : | DragAction |
Properties | |
---|---|
guint32 Gdk.DragAction.ASK : 32
|
|
guint32 Gdk.DragAction.COPY : 2
|
|
guint32 Gdk.DragAction.DEFAULT : 1
|
|
guint32 Gdk.DragAction.LINK : 8
|
|
guint32 Gdk.DragAction.MOVE : 4
|
|
guint32 Gdk.DragAction.PRIVATE : 16
|
None |
None |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gdk
Method |
Gdk.drag_motion
(DragContext context, Window dest_window, DragProtocol protocol, gint32 x_root, gint32 y_root, DragAction suggested_action, DragAction possible_actions, guint32 time_)
:
gboolean
Updates the drag context when the pointer moves or the
set of actions changes. |
Gdk
Method |
Selects one of the actions offered by the drag source.
|
Gdk.DragContext
Method |
get_actions
()
:
Gdk.DragAction
Determines the bitmask of actions proposed by the source if
gdk_drag_context_get_suggested_action() returns GDK_ACTION_ASK. |
Gdk.DragContext
Method |
get_selected_action
()
:
Gdk.DragAction
Determines the action chosen by the drag destination.
|
Gdk.DragContext
Method |
get_suggested_action
()
:
Gdk.DragAction
Determines the suggested drag action of the context.
|
Gtk.Entry
Method |
set_icon_drag_source
(EntryIconPosition icon_pos, TargetList target_list, DragAction actions)
:
none
Sets up the icon at the given position so that GTK+ will start a drag
operation when the user clicks and drags the icon. |
Gtk.IconView
Method |
Turns icon_view into a drop destination for automatic DND.
|
Gtk.IconView
Method |
enable_model_drag_source
(ModifierType start_button_mask, Array targets, gint32 n_targets, DragAction actions)
:
none
Turns icon_view into a drag source for automatic DND.
|
Gtk.ToolPalette
Method |
add_drag_dest
(Widget widget, DestDefaults flags, ToolPaletteDragTargets targets, DragAction actions)
:
none
Sets palette as drag source (see gtk_tool_palette_set_drag_source())
and sets widget as a drag destination for drags from palette. |
Gtk.TreeView
Method |
Turns tree_view into a drop destination for automatic DND.
|
Gtk.TreeView
Method |
enable_model_drag_source
(ModifierType start_button_mask, Array targets, gint32 n_targets, DragAction actions)
:
none
Turns tree_view into a drag source for automatic DND.
|
Gtk.Widget
Method |
Initiates a drag on the source side.
|
Gtk.Widget
Method |
Sets a widget as a potential drop destination, and adds default behaviors.
|
Gtk.Widget
Method |
drag_source_set
(ModifierType start_button_mask, Array targets, gint32 n_targets, DragAction actions)
:
none
Sets up a widget so that GTK+ will start a drag operation when the user
clicks and drags on the widget. |