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

NAME

6       Gtk2::Gdk::DragContext
7

HIERARCHY

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

METHODS

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

ENUMS AND FLAGS

146       flags Gtk2::Gdk::DragAction
147
148       * 'default' / 'GDK_ACTION_DEFAULT'
149       * 'copy' / 'GDK_ACTION_COPY'
150       * 'move' / 'GDK_ACTION_MOVE'
151       * 'link' / 'GDK_ACTION_LINK'
152       * 'private' / 'GDK_ACTION_PRIVATE'
153       * 'ask' / 'GDK_ACTION_ASK'
154
155       enum Gtk2::Gdk::DragProtocol
156
157       * 'motif' / 'GDK_DRAG_PROTO_MOTIF'
158       * 'xdnd' / 'GDK_DRAG_PROTO_XDND'
159       * 'rootwin' / 'GDK_DRAG_PROTO_ROOTWIN'
160       * 'none' / 'GDK_DRAG_PROTO_NONE'
161       * 'win32-dropfiles' / 'GDK_DRAG_PROTO_WIN32_DROPFILES'
162       * 'ole2' / 'GDK_DRAG_PROTO_OLE2'
163       * 'local' / 'GDK_DRAG_PROTO_LOCAL'
164

SEE ALSO

166       Gtk2, Glib::Object
167
169       Copyright (C) 2003-2007 by the gtk2-perl team.
170
171       This software is licensed under the LGPL.  See Gtk2 for a full notice.
172
173
174
175perl v5.8.8                       2007-03-18         Gtk2::Gdk::DragContext(3)
Impressum