man Gtk2::Gdk::Event () - Gtk2::Gdk::Event

NAME

Gtk2::Gdk::Event

HIERARCHY

  Glib::Boxed
  +----Gtk2::Gdk::Event

EVENT TYPES

* Gtk2::Gdk::Event::Button
* Gtk2::Gdk::Event::Client
* Gtk2::Gdk::Event::Configure
* Gtk2::Gdk::Event::Crossing
* Gtk2::Gdk::Event::DND
* Gtk2::Gdk::Event::Expose
* Gtk2::Gdk::Event::Focus
* Gtk2::Gdk::Event::Key
* Gtk2::Gdk::Event::Motion
* Gtk2::Gdk::Event::NoExpose
* Gtk2::Gdk::Event::Property
* Gtk2::Gdk::Event::Proximity
* Gtk2::Gdk::Event::Scroll
* Gtk2::Gdk::Event::Selection
* Gtk2::Gdk::Event::Setting
* Gtk2::Gdk::Event::Visibility
* Gtk2::Gdk::Event::WindowState
* Gtk2::Gdk::Event::OwnerChange (since gtk+ 2.6)

METHODS

event = Gtk2::Gdk::Event->new ($type)

event or undef = Gtk2::Gdk::Event->get

event or undef = Gtk2::Gdk::Event->get_graphics_expose ($window)

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 CWGtk2::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).

event or undef = Gtk2::Gdk::Event->peek

Gtk2::Gdk::Event->put ($event)

$event->set_screen ($screen)

Gtk2::Gdk::Event->send_clientmessage_toall ($event)

Get $event's state. Croaks if that event type doesn't have a state.

$event->set_state ($newstate)

Get $event's time. If that event type doesn't have a time, returns GDK_CURRENT_TIME, which is 0.

$event->set_time ($newtime)

ENUMS AND FLAGS

enum Gtk2::Gdk::AxisUse

* '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'

enum Gtk2::Gdk::EventType

* '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'

flags Gtk2::Gdk::ModifierType

* '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'
* 'release-mask' / 'GDK_RELEASE_MASK'
* 'modifier-mask' / 'GDK_MODIFIER_MASK'

SEE ALSO

Gtk2, Glib::Boxed

COPYRIGHT

Copyright (C) 2003-2005 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.