Next: Gtk2::Gdk::Event::Button | Previous: Gtk2::Gdk::Drawable | [Gtk2-Perl - Table of Contents] | [Gtk2-Perl - Index] |
Gtk2::Gdk::Event
Glib::Boxed +----Gtk2::Gdk::Event
Set the function that handles all events from GDK. GTK+ uses this to
dispatch events, and as such this is rarely of use to applications,
unless you are implementing completely custom event dispatching (unlikely)
or preprocess events somehow and then pass them on to
Gtk2::main_do_event
. As a special case, if func is undef,
we "reset" the handler by passing the actual C function gtk_main_do_event
to GDK, to bypass the Perl marshaling (and take things back up to full
speed).
Since: gtk+ 2.2
Since: gtk+ 2.2
Since: gtk+ 2.2
Get $event's state. Croaks if that event type doesn't have a state.
Get $event's time. If that event type doesn't have a time, or if $event is undef, returns GDK_CURRENT_TIME, which is 0.
'ignore' / 'GDK_AXIS_IGNORE'
'x' / 'GDK_AXIS_X'
'y' / 'GDK_AXIS_Y'
'pressure' / 'GDK_AXIS_PRESSURE'
'xtilt' / 'GDK_AXIS_XTILT'
'ytilt' / 'GDK_AXIS_YTILT'
'wheel' / 'GDK_AXIS_WHEEL'
'last' / 'GDK_AXIS_LAST'
'nothing' / 'GDK_NOTHING'
'delete' / 'GDK_DELETE'
'destroy' / 'GDK_DESTROY'
'expose' / 'GDK_EXPOSE'
'motion-notify' / 'GDK_MOTION_NOTIFY'
'button-press' / 'GDK_BUTTON_PRESS'
'2button-press' / 'GDK_2BUTTON_PRESS'
'3button-press' / 'GDK_3BUTTON_PRESS'
'button-release' / 'GDK_BUTTON_RELEASE'
'key-press' / 'GDK_KEY_PRESS'
'key-release' / 'GDK_KEY_RELEASE'
'enter-notify' / 'GDK_ENTER_NOTIFY'
'leave-notify' / 'GDK_LEAVE_NOTIFY'
'focus-change' / 'GDK_FOCUS_CHANGE'
'configure' / 'GDK_CONFIGURE'
'map' / 'GDK_MAP'
'unmap' / 'GDK_UNMAP'
'property-notify' / 'GDK_PROPERTY_NOTIFY'
'selection-clear' / 'GDK_SELECTION_CLEAR'
'selection-request' / 'GDK_SELECTION_REQUEST'
'selection-notify' / 'GDK_SELECTION_NOTIFY'
'proximity-in' / 'GDK_PROXIMITY_IN'
'proximity-out' / 'GDK_PROXIMITY_OUT'
'drag-enter' / 'GDK_DRAG_ENTER'
'drag-leave' / 'GDK_DRAG_LEAVE'
'drag-motion' / 'GDK_DRAG_MOTION'
'drag-status' / 'GDK_DRAG_STATUS'
'drop-start' / 'GDK_DROP_START'
'drop-finished' / 'GDK_DROP_FINISHED'
'client-event' / 'GDK_CLIENT_EVENT'
'visibility-notify' / 'GDK_VISIBILITY_NOTIFY'
'no-expose' / 'GDK_NO_EXPOSE'
'scroll' / 'GDK_SCROLL'
'window-state' / 'GDK_WINDOW_STATE'
'setting' / 'GDK_SETTING'
'owner-change' / 'GDK_OWNER_CHANGE'
'grab-broken' / 'GDK_GRAB_BROKEN'
'shift-mask' / 'GDK_SHIFT_MASK'
'lock-mask' / 'GDK_LOCK_MASK'
'control-mask' / 'GDK_CONTROL_MASK'
'mod1-mask' / 'GDK_MOD1_MASK'
'mod2-mask' / 'GDK_MOD2_MASK'
'mod3-mask' / 'GDK_MOD3_MASK'
'mod4-mask' / 'GDK_MOD4_MASK'
'mod5-mask' / 'GDK_MOD5_MASK'
'button1-mask' / 'GDK_BUTTON1_MASK'
'button2-mask' / 'GDK_BUTTON2_MASK'
'button3-mask' / 'GDK_BUTTON3_MASK'
'button4-mask' / 'GDK_BUTTON4_MASK'
'button5-mask' / 'GDK_BUTTON5_MASK'
'super-mask' / 'GDK_SUPER_MASK'
'hyper-mask' / 'GDK_HYPER_MASK'
'meta-mask' / 'GDK_META_MASK'
'release-mask' / 'GDK_RELEASE_MASK'
'modifier-mask' / 'GDK_MODIFIER_MASK'
Copyright (C) 2003-2008 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.