Gtk2::Gdk::Event Glib::Boxed +----Gtk2::Gdk::Event 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) Gtk2::Gdk::Event::GrabBroken (since gtk+ 2.8)

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

double = $event->axis ($axis_use)
$axis_use (Gtk2::Gdk::AxisUse)

double = $event->get_axis ($axis_use)
$axis_use (Gtk2::Gdk::AxisUse)

($x, $y) = $event->coords

($x, $y) = $event->get_coords

event = $event->copy

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

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

Gtk2::Gdk::Event->handler_set ($func, $data=undef)
$func (subroutine) function to get called for each event. $data (scalar) 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).

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

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

($x_root, $y_root) = $event->root_coords

($x_root, $y_root) = $event->get_root_coords

screen = $event->get_screen
Since: gtk+ 2.2

$event->set_screen ($screen)
$screen (Gtk2::Gdk::Screen) Since: gtk+ 2.2

boolean = Gtk2::Gdk::Event->send_client_message ($event, $winid)
$event (Gtk2::Gdk::Event) $winid (Gtk2::Gdk::NativeWindow)

boolean = Gtk2::Gdk::Event->send_client_message_for_display ($display, $event, $winid)
$display (Gtk2::Gdk::Display) $event (Gtk2::Gdk::Event) $winid (Gtk2::Gdk::NativeWindow) Since: gtk+ 2.2

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

integer = $event->send_event ($newvalue=0)
$newvalue (integer)

$modifiertype = $event->get_state

$modifiertype = $event->state
Get $event's state. Croaks if that event type doesn't have a state.

$event->set_state ($newstate)
$newstate (Gtk2::Gdk::ModifierType)

$timestamp = $event->get_time

$timestamp = $event->time
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.

$event->set_time ($newtime)
$newtime (integer) timestamp

eventtype = $event->type

window or undef = $event->window ($newvalue=undef)
$newvalue (Gtk2::Gdk::Window or undef)

integer = $event->x_root

integer = $event->y_root

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' 'damage' / 'GDK_DAMAGE'

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' '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' Gtk2, Glib::Boxed Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice.