Gtk2::Gdk::DragContext3pm
Wrapper for gdkdragcontext
Hierarchy
Glib::Object+----Gtk2::Gdk::DragContext
Methods
dragcontext = Gtk2::Gdk::DragContext->new
$context->abort ($time_)
- •
-
$time_(unsigned)
scalar = $dc->action
scalar = $dc->actions
dragaction = $context->get_actions
Since: gtk+ 2.22
dragcontext = Gtk2::Gdk::DragContext->begin ($window, ...)
•
|
|
|---|---|
•
|
... (list) of Gtk2::Gdk::Atom's |
scalar = $dc->dest_window
boolean = $context->drag_drop_succeeded
Since: gtk+ 2.6
$context->drop ($time_)
- •
-
$time_(unsigned)
$context->drop_finish ($success, $time_=GDK_CURRENT_TIME)
•
|
|
|---|---|
•
|
|
$context->drop_reply ($ok, $time_=GDK_CURRENT_TIME)
•
|
|
|---|---|
•
|
|
(dest_window, protocol) = $context->find_window ($drag_window, $x_root, $y_root)
•
|
|
|---|---|
•
|
|
•
|
|
(dest_window, protocol) = $context->find_window_for_screen ($drag_window, $screen, $x_root, $y_root)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
Since: gtk+ 2.2
$context->finish ($success, $del, $time_)
•
|
|
|---|---|
•
|
|
•
|
|
$context->set_icon_default
$context->set_icon_name ($icon_name, $hot_x, $hot_y)
•
|
|
|---|---|
•
|
|
•
|
|
Since: gtk+ 2.8
$context->set_icon_pixbuf ($pixbuf, $hot_x, $hot_y)
•
|
|
|---|---|
•
|
|
•
|
|
$context->set_icon_pixmap ($colormap, $pixmap, $mask, $hot_x, $hot_y)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
$context->set_icon_stock ($stock_id, $hot_x, $hot_y)
•
|
|
|---|---|
•
|
|
•
|
|
$context->set_icon_widget ($widget, $hot_x, $hot_y)
•
|
|
|---|---|
•
|
|
•
|
|
scalar = $dc->is_source
list = $context->list_targets
Since: gtk+ 2.22
boolean = $context->motion ($dest_window, $protocol, $x_root, $y_root, $suggested_action, $possible_actions, $time_)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
scalar = $dc->protocol
(ret, protocol) = Gtk2::Gdk::DragContext->get_protocol_for_display ($display, $xid)
•
|
|
|---|---|
•
|
|
Since: gtk+ 2.2
(ret, protocol) = Gtk2::Gdk::DragContext->get_protocol ($xid)
- •
-
$xid(unsigned)
dragaction = $context->get_selected_action
Since: gtk+ 2.22
atom = $context->get_selection
widget = $context->get_source_widget
scalar = $dc->source_window
window = $context->get_source_window
Since: gtk+ 2.22
scalar = $dc->start_time
$context->status ($action, $time_=GDK_CURRENT_TIME)
•
|
|
|---|---|
•
|
|
scalar = $dc->suggested_action
dragaction = $context->get_suggested_action
Since: gtk+ 2.22
list = $dc->targets
Returns a list of Gtk2::Gdk::Atom's, the targets.
Enums and flags
flags Gtk2::Gdk::DragAction
•
|
'default' / 'GDK_ACTION_DEFAULT' |
|---|---|
•
|
'copy' / 'GDK_ACTION_COPY' |
•
|
'move' / 'GDK_ACTION_MOVE' |
•
|
'link' / 'GDK_ACTION_LINK' |
•
|
'private' / 'GDK_ACTION_PRIVATE' |
•
|
'ask' / 'GDK_ACTION_ASK' |
enum Gtk2::Gdk::DragProtocol
•
|
'motif' / 'GDK_DRAG_PROTO_MOTIF' |
|---|---|
•
|
'xdnd' / 'GDK_DRAG_PROTO_XDND' |
•
|
'rootwin' / 'GDK_DRAG_PROTO_ROOTWIN' |
•
|
'none' / 'GDK_DRAG_PROTO_NONE' |
•
|
'win32-dropfiles' / 'GDK_DRAG_PROTO_WIN32_DROPFILES' |
•
|
'ole2' / 'GDK_DRAG_PROTO_OLE2' |
•
|
'local' / 'GDK_DRAG_PROTO_LOCAL' |
Releases
7 releases since Debian 3.1 (Sarge); the text changed 6 times.