1Gtk2::Gdk::Event(3)   User Contributed Perl Documentation  Gtk2::Gdk::Event(3)
2
3
4

NAME

6       Gtk2::Gdk::Event
7

HIERARCHY

9         Glib::Boxed
10         +----Gtk2::Gdk::Event
11

EVENT TYPES

13       * Gtk2::Gdk::Event::Button
14       * Gtk2::Gdk::Event::Client
15       * Gtk2::Gdk::Event::Configure
16       * Gtk2::Gdk::Event::Crossing
17       * Gtk2::Gdk::Event::DND
18       * Gtk2::Gdk::Event::Expose
19       * Gtk2::Gdk::Event::Focus
20       * Gtk2::Gdk::Event::Key
21       * Gtk2::Gdk::Event::Motion
22       * Gtk2::Gdk::Event::NoExpose
23       * Gtk2::Gdk::Event::Property
24       * Gtk2::Gdk::Event::Proximity
25       * Gtk2::Gdk::Event::Scroll
26       * Gtk2::Gdk::Event::Selection
27       * Gtk2::Gdk::Event::Setting
28       * Gtk2::Gdk::Event::Visibility
29       * Gtk2::Gdk::Event::WindowState
30       * Gtk2::Gdk::Event::OwnerChange (since gtk+ 2.6)
31       * Gtk2::Gdk::Event::GrabBroken (since gtk+ 2.8)
32

METHODS

34       event = Gtk2::Gdk::Event->new ($type)
35
36           * $type (Gtk2::Gdk::EventType)
37
38       double = $event->axis ($axis_use)
39
40           * $axis_use (Gtk2::Gdk::AxisUse)
41
42       double = $event->get_axis ($axis_use)
43
44           * $axis_use (Gtk2::Gdk::AxisUse)
45
46       ($x, $y) = $event->coords
47
48       ($x, $y) = $event->get_coords
49
50       event = $event->copy
51
52       event or undef = Gtk2::Gdk::Event->get
53
54       event or undef = Gtk2::Gdk::Event->get_graphics_expose ($window)
55
56           * $window (Gtk2::Gdk::Window)
57
58       Gtk2::Gdk::Event->handler_set ($func, $data=undef)
59
60           * $func (subroutine) function to get called for each event.
61           * $data (scalar)
62
63           Set the function that handles all events from GDK.  GTK+ uses this
64           to dispatch events, and as such this is rarely of use to applica‐
65           tions, unless you are implementing completely custom event dis‐
66           patching (unlikely) or preprocess events somehow and then pass them
67           on to "Gtk2::main_do_event".  As a special case, if func is undef,
68           we "reset" the handler by passing the actual C function
69           gtk_main_do_event to GDK, to bypass the Perl marshaling (and take
70           things back up to full speed).
71
72       event or undef = Gtk2::Gdk::Event->peek
73
74       Gtk2::Gdk::Event->put ($event)
75
76           * $event (Gtk2::Gdk::Event)
77
78       ($x_root, $y_root) = $event->root_coords
79
80       ($x_root, $y_root) = $event->get_root_coords
81
82       screen = $event->get_screen
83
84       $event->set_screen ($screen)
85
86           * $screen (Gtk2::Gdk::Screen)
87
88       boolean = Gtk2::Gdk::Event->send_client_message ($event, $winid)
89
90           * $event (Gtk2::Gdk::Event)
91           * $winid (Gtk2::Gdk::NativeWindow)
92
93       boolean = Gtk2::Gdk::Event->send_client_message_for_display ($display,
94       $event, $winid)
95
96           * $display (Gtk2::Gdk::Display)
97           * $event (Gtk2::Gdk::Event)
98           * $winid (Gtk2::Gdk::NativeWindow)
99
100       Gtk2::Gdk::Event->send_clientmessage_toall ($event)
101
102           * $event (Gtk2::Gdk::Event)
103
104       integer = $event->send_event ($newvalue=0)
105
106           * $newvalue (integer)
107
108       $modifiertype = $event->get_state
109
110       $modifiertype = $event->state
111
112           Get $event's state.  Croaks if that event type doesn't have a
113           state.
114
115       $event->set_state ($newstate)
116
117           * $newstate (Gtk2::Gdk::ModifierType)
118
119       $timestamp = $event->get_time
120
121       $timestamp = $event->time
122
123           Get $event's time.  If that event type doesn't have a time, or if
124           $event is undef, returns GDK_CURRENT_TIME, which is 0.
125
126       $event->set_time ($newtime)
127
128           * $newtime (timestamp)
129
130       eventtype = $event->type
131
132       window or undef = $event->window ($newvalue=undef)
133
134           * $newvalue (Gtk2::Gdk::Window or undef)
135
136       integer = $event->x_root
137
138       integer = $event->y_root
139

ENUMS AND FLAGS

141       enum Gtk2::Gdk::AxisUse
142
143       * 'ignore' / 'GDK_AXIS_IGNORE'
144       * 'x' / 'GDK_AXIS_X'
145       * 'y' / 'GDK_AXIS_Y'
146       * 'pressure' / 'GDK_AXIS_PRESSURE'
147       * 'xtilt' / 'GDK_AXIS_XTILT'
148       * 'ytilt' / 'GDK_AXIS_YTILT'
149       * 'wheel' / 'GDK_AXIS_WHEEL'
150       * 'last' / 'GDK_AXIS_LAST'
151
152       enum Gtk2::Gdk::EventType
153
154       * 'nothing' / 'GDK_NOTHING'
155       * 'delete' / 'GDK_DELETE'
156       * 'destroy' / 'GDK_DESTROY'
157       * 'expose' / 'GDK_EXPOSE'
158       * 'motion-notify' / 'GDK_MOTION_NOTIFY'
159       * 'button-press' / 'GDK_BUTTON_PRESS'
160       * '2button-press' / 'GDK_2BUTTON_PRESS'
161       * '3button-press' / 'GDK_3BUTTON_PRESS'
162       * 'button-release' / 'GDK_BUTTON_RELEASE'
163       * 'key-press' / 'GDK_KEY_PRESS'
164       * 'key-release' / 'GDK_KEY_RELEASE'
165       * 'enter-notify' / 'GDK_ENTER_NOTIFY'
166       * 'leave-notify' / 'GDK_LEAVE_NOTIFY'
167       * 'focus-change' / 'GDK_FOCUS_CHANGE'
168       * 'configure' / 'GDK_CONFIGURE'
169       * 'map' / 'GDK_MAP'
170       * 'unmap' / 'GDK_UNMAP'
171       * 'property-notify' / 'GDK_PROPERTY_NOTIFY'
172       * 'selection-clear' / 'GDK_SELECTION_CLEAR'
173       * 'selection-request' / 'GDK_SELECTION_REQUEST'
174       * 'selection-notify' / 'GDK_SELECTION_NOTIFY'
175       * 'proximity-in' / 'GDK_PROXIMITY_IN'
176       * 'proximity-out' / 'GDK_PROXIMITY_OUT'
177       * 'drag-enter' / 'GDK_DRAG_ENTER'
178       * 'drag-leave' / 'GDK_DRAG_LEAVE'
179       * 'drag-motion' / 'GDK_DRAG_MOTION'
180       * 'drag-status' / 'GDK_DRAG_STATUS'
181       * 'drop-start' / 'GDK_DROP_START'
182       * 'drop-finished' / 'GDK_DROP_FINISHED'
183       * 'client-event' / 'GDK_CLIENT_EVENT'
184       * 'visibility-notify' / 'GDK_VISIBILITY_NOTIFY'
185       * 'no-expose' / 'GDK_NO_EXPOSE'
186       * 'scroll' / 'GDK_SCROLL'
187       * 'window-state' / 'GDK_WINDOW_STATE'
188       * 'setting' / 'GDK_SETTING'
189       * 'owner-change' / 'GDK_OWNER_CHANGE'
190       * 'grab-broken' / 'GDK_GRAB_BROKEN'
191
192       flags Gtk2::Gdk::ModifierType
193
194       * 'shift-mask' / 'GDK_SHIFT_MASK'
195       * 'lock-mask' / 'GDK_LOCK_MASK'
196       * 'control-mask' / 'GDK_CONTROL_MASK'
197       * 'mod1-mask' / 'GDK_MOD1_MASK'
198       * 'mod2-mask' / 'GDK_MOD2_MASK'
199       * 'mod3-mask' / 'GDK_MOD3_MASK'
200       * 'mod4-mask' / 'GDK_MOD4_MASK'
201       * 'mod5-mask' / 'GDK_MOD5_MASK'
202       * 'button1-mask' / 'GDK_BUTTON1_MASK'
203       * 'button2-mask' / 'GDK_BUTTON2_MASK'
204       * 'button3-mask' / 'GDK_BUTTON3_MASK'
205       * 'button4-mask' / 'GDK_BUTTON4_MASK'
206       * 'button5-mask' / 'GDK_BUTTON5_MASK'
207       * 'super-mask' / 'GDK_SUPER_MASK'
208       * 'hyper-mask' / 'GDK_HYPER_MASK'
209       * 'meta-mask' / 'GDK_META_MASK'
210       * 'release-mask' / 'GDK_RELEASE_MASK'
211       * 'modifier-mask' / 'GDK_MODIFIER_MASK'
212

SEE ALSO

214       Gtk2, Glib::Boxed
215
217       Copyright (C) 2003-2007 by the gtk2-perl team.
218
219       This software is licensed under the LGPL.  See Gtk2 for a full notice.
220
221
222
223perl v5.8.8                       2007-03-18               Gtk2::Gdk::Event(3)
Impressum