1Gtk2::Gdk::DragContext(U3s)er Contributed Perl DocumentatGitokn2::Gdk::DragContext(3)
2
3
4
6 Gtk2::Gdk::DragContext
7
9 Glib::Object
10 +----Gtk2::Gdk::DragContext
11
13 dragcontext = Gtk2::Gdk::DragContext->new
14 $context->abort ($time_)
15 · $time_ (unsigned)
16
17 scalar = $dc->action
18 scalar = $dc->actions
19 dragcontext = Gtk2::Gdk::DragContext->begin ($window, ...)
20 · $window (Gtk2::Gdk::Window)
21
22 · ... (list) of Gtk2::Gdk::Atom's
23
24 scalar = $dc->dest_window
25 boolean = $context->drag_drop_succeeded
26 Since: gtk+ 2.6
27
28 $context->drop ($time_)
29 · $time_ (unsigned)
30
31 $context->drop_finish ($success, $time_=GDK_CURRENT_TIME)
32 · $success (boolean)
33
34 · $time_ (unsigned)
35
36 $context->drop_reply ($ok, $time_=GDK_CURRENT_TIME)
37 · $ok (boolean)
38
39 · $time_ (unsigned)
40
41 (dest_window, protocol) = $context->find_window ($drag_window, $x_root,
42 $y_root)
43 · $drag_window (Gtk2::Gdk::Window)
44
45 · $x_root (integer)
46
47 · $y_root (integer)
48
49 (dest_window, protocol) = $context->find_window_for_screen ($drag_window,
50 $screen, $x_root, $y_root)
51 · $drag_window (Gtk2::Gdk::Window)
52
53 · $screen (Gtk2::Gdk::Screen)
54
55 · $x_root (integer)
56
57 · $y_root (integer)
58
59 Since: gtk+ 2.2
60
61 $context->finish ($success, $del, $time_)
62 · $success (boolean)
63
64 · $del (boolean)
65
66 · $time_ (unsigned)
67
68 $context->set_icon_default
69 $context->set_icon_name ($icon_name, $hot_x, $hot_y)
70 · $icon_name (string)
71
72 · $hot_x (integer)
73
74 · $hot_y (integer)
75
76 Since: gtk+ 2.8
77
78 $context->set_icon_pixbuf ($pixbuf, $hot_x, $hot_y)
79 · $pixbuf (Gtk2::Gdk::Pixbuf)
80
81 · $hot_x (integer)
82
83 · $hot_y (integer)
84
85 $context->set_icon_pixmap ($colormap, $pixmap, $mask, $hot_x, $hot_y)
86 · $colormap (Gtk2::Gdk::Colormap)
87
88 · $pixmap (Gtk2::Gdk::Pixmap)
89
90 · $mask (Gtk2::Gdk::Bitmap or undef)
91
92 · $hot_x (integer)
93
94 · $hot_y (integer)
95
96 $context->set_icon_stock ($stock_id, $hot_x, $hot_y)
97 · $stock_id (string)
98
99 · $hot_x (integer)
100
101 · $hot_y (integer)
102
103 $context->set_icon_widget ($widget, $hot_x, $hot_y)
104 · $widget (Gtk2::Widget)
105
106 · $hot_x (integer)
107
108 · $hot_y (integer)
109
110 scalar = $dc->is_source
111 boolean = $context->motion ($dest_window, $protocol, $x_root, $y_root,
112 $suggested_action, $possible_actions, $time_)
113 · $dest_window (Gtk2::Gdk::Window)
114
115 · $protocol (Gtk2::Gdk::DragProtocol)
116
117 · $x_root (integer)
118
119 · $y_root (integer)
120
121 · $suggested_action (Gtk2::Gdk::DragAction)
122
123 · $possible_actions (Gtk2::Gdk::DragAction)
124
125 · $time_ (unsigned)
126
127 scalar = $dc->protocol
128 (ret, protocol) = Gtk2::Gdk::DragContext->get_protocol_for_display
129 ($display, $xid)
130 · $display (Gtk2::Gdk::Display)
131
132 · $xid (unsigned)
133
134 Since: gtk+ 2.2
135
136 (ret, protocol) = Gtk2::Gdk::DragContext->get_protocol ($xid)
137 · $xid (unsigned)
138
139 atom = $context->get_selection
140 widget = $context->get_source_widget
141 scalar = $dc->source_window
142 scalar = $dc->start_time
143 $context->status ($action, $time_=GDK_CURRENT_TIME)
144 · $action (Gtk2::Gdk::DragAction)
145
146 · $time_ (unsigned)
147
148 scalar = $dc->suggested_action
149 list = $dc->targets
150 Returns a list of Gtk2::Gdk::Atom's, the targets.
151
153 flags Gtk2::Gdk::DragAction
154 · 'default' / 'GDK_ACTION_DEFAULT'
155
156 · 'copy' / 'GDK_ACTION_COPY'
157
158 · 'move' / 'GDK_ACTION_MOVE'
159
160 · 'link' / 'GDK_ACTION_LINK'
161
162 · 'private' / 'GDK_ACTION_PRIVATE'
163
164 · 'ask' / 'GDK_ACTION_ASK'
165
166 enum Gtk2::Gdk::DragProtocol
167 · 'motif' / 'GDK_DRAG_PROTO_MOTIF'
168
169 · 'xdnd' / 'GDK_DRAG_PROTO_XDND'
170
171 · 'rootwin' / 'GDK_DRAG_PROTO_ROOTWIN'
172
173 · 'none' / 'GDK_DRAG_PROTO_NONE'
174
175 · 'win32-dropfiles' / 'GDK_DRAG_PROTO_WIN32_DROPFILES'
176
177 · 'ole2' / 'GDK_DRAG_PROTO_OLE2'
178
179 · 'local' / 'GDK_DRAG_PROTO_LOCAL'
180
182 Gtk2, Glib::Object
183
185 Copyright (C) 2003-2008 by the gtk2-perl team.
186
187 This software is licensed under the LGPL. See Gtk2 for a full notice.
188
189
190
191perl v5.12.0 2010-05-02 Gtk2::Gdk::DragContext(3)