1Gtk2::Gdk::DragContext(U3s)er Contributed Perl DocumentatGitokn2::Gdk::DragContext(3)
2
3
4

NAME

6       Gtk2::Gdk::DragContext - wrapper for GdkDragContext
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::Gdk::DragContext
11

METHODS

13   dragcontext = Gtk2::Gdk::DragContext->new
14   $context->abort ($time_)
15       ·   $time_ (unsigned)
16
17   scalar = $dc->action
18   scalar = $dc->actions
19   dragaction = $context->get_actions
20       Since: gtk+ 2.22
21
22   dragcontext = Gtk2::Gdk::DragContext->begin ($window, ...)
23       ·   $window (Gtk2::Gdk::Window)
24
25       ·   ... (list) of Gtk2::Gdk::Atom's
26
27   scalar = $dc->dest_window
28   boolean = $context->drag_drop_succeeded
29       Since: gtk+ 2.6
30
31   $context->drop ($time_)
32       ·   $time_ (unsigned)
33
34   $context->drop_finish ($success, $time_=GDK_CURRENT_TIME)
35       ·   $success (boolean)
36
37       ·   $time_ (unsigned)
38
39   $context->drop_reply ($ok, $time_=GDK_CURRENT_TIME)
40       ·   $ok (boolean)
41
42       ·   $time_ (unsigned)
43
44   (dest_window, protocol) = $context->find_window ($drag_window, $x_root,
45       $y_root)
46       ·   $drag_window (Gtk2::Gdk::Window)
47
48       ·   $x_root (integer)
49
50       ·   $y_root (integer)
51
52   (dest_window, protocol) = $context->find_window_for_screen ($drag_window,
53       $screen, $x_root, $y_root)
54       ·   $drag_window (Gtk2::Gdk::Window)
55
56       ·   $screen (Gtk2::Gdk::Screen)
57
58       ·   $x_root (integer)
59
60       ·   $y_root (integer)
61
62       Since: gtk+ 2.2
63
64   $context->finish ($success, $del, $time_)
65       ·   $success (boolean)
66
67       ·   $del (boolean)
68
69       ·   $time_ (unsigned)
70
71   $context->set_icon_default
72   $context->set_icon_name ($icon_name, $hot_x, $hot_y)
73       ·   $icon_name (string)
74
75       ·   $hot_x (integer)
76
77       ·   $hot_y (integer)
78
79       Since: gtk+ 2.8
80
81   $context->set_icon_pixbuf ($pixbuf, $hot_x, $hot_y)
82       ·   $pixbuf (Gtk2::Gdk::Pixbuf)
83
84       ·   $hot_x (integer)
85
86       ·   $hot_y (integer)
87
88   $context->set_icon_pixmap ($colormap, $pixmap, $mask, $hot_x, $hot_y)
89       ·   $colormap (Gtk2::Gdk::Colormap)
90
91       ·   $pixmap (Gtk2::Gdk::Pixmap)
92
93       ·   $mask (Gtk2::Gdk::Bitmap or undef)
94
95       ·   $hot_x (integer)
96
97       ·   $hot_y (integer)
98
99   $context->set_icon_stock ($stock_id, $hot_x, $hot_y)
100       ·   $stock_id (string)
101
102       ·   $hot_x (integer)
103
104       ·   $hot_y (integer)
105
106   $context->set_icon_widget ($widget, $hot_x, $hot_y)
107       ·   $widget (Gtk2::Widget)
108
109       ·   $hot_x (integer)
110
111       ·   $hot_y (integer)
112
113   scalar = $dc->is_source
114   list = $context->list_targets
115       Since: gtk+ 2.22
116
117   boolean = $context->motion ($dest_window, $protocol, $x_root, $y_root,
118       $suggested_action, $possible_actions, $time_)
119       ·   $dest_window (Gtk2::Gdk::Window)
120
121       ·   $protocol (Gtk2::Gdk::DragProtocol)
122
123       ·   $x_root (integer)
124
125       ·   $y_root (integer)
126
127       ·   $suggested_action (Gtk2::Gdk::DragAction)
128
129       ·   $possible_actions (Gtk2::Gdk::DragAction)
130
131       ·   $time_ (unsigned)
132
133   scalar = $dc->protocol
134   (ret, protocol) = Gtk2::Gdk::DragContext->get_protocol_for_display
135       ($display, $xid)
136       ·   $display (Gtk2::Gdk::Display)
137
138       ·   $xid (unsigned)
139
140       Since: gtk+ 2.2
141
142   (ret, protocol) = Gtk2::Gdk::DragContext->get_protocol ($xid)
143       ·   $xid (unsigned)
144
145   dragaction = $context->get_selected_action
146       Since: gtk+ 2.22
147
148   atom = $context->get_selection
149   widget = $context->get_source_widget
150   scalar = $dc->source_window
151   window = $context->get_source_window
152       Since: gtk+ 2.22
153
154   scalar = $dc->start_time
155   $context->status ($action, $time_=GDK_CURRENT_TIME)
156       ·   $action (Gtk2::Gdk::DragAction)
157
158       ·   $time_ (unsigned)
159
160   scalar = $dc->suggested_action
161   dragaction = $context->get_suggested_action
162       Since: gtk+ 2.22
163
164   list = $dc->targets
165       Returns a list of Gtk2::Gdk::Atom's, the targets.
166

ENUMS AND FLAGS

168   flags Gtk2::Gdk::DragAction
169       ·   'default' / 'GDK_ACTION_DEFAULT'
170
171       ·   'copy' / 'GDK_ACTION_COPY'
172
173       ·   'move' / 'GDK_ACTION_MOVE'
174
175       ·   'link' / 'GDK_ACTION_LINK'
176
177       ·   'private' / 'GDK_ACTION_PRIVATE'
178
179       ·   'ask' / 'GDK_ACTION_ASK'
180
181   enum Gtk2::Gdk::DragProtocol
182       ·   'motif' / 'GDK_DRAG_PROTO_MOTIF'
183
184       ·   'xdnd' / 'GDK_DRAG_PROTO_XDND'
185
186       ·   'rootwin' / 'GDK_DRAG_PROTO_ROOTWIN'
187
188       ·   'none' / 'GDK_DRAG_PROTO_NONE'
189
190       ·   'win32-dropfiles' / 'GDK_DRAG_PROTO_WIN32_DROPFILES'
191
192       ·   'ole2' / 'GDK_DRAG_PROTO_OLE2'
193
194       ·   'local' / 'GDK_DRAG_PROTO_LOCAL'
195

SEE ALSO

197       Gtk2, Glib::Object
198
200       Copyright (C) 2003-2011 by the gtk2-perl team.
201
202       This software is licensed under the LGPL.  See Gtk2 for a full notice.
203
204
205
206perl v5.28.1                      2019-02-02         Gtk2::Gdk::DragContext(3)
Impressum