GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Gtk2::Gdk::Event(3) User Contributed Perl Documentation Gtk2::Gdk::Event(3)

Gtk2::Gdk::Event - wrapper for GdkEvent

  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)

$type (Gtk2::Gdk::EventType)

$axis_use (Gtk2::Gdk::AxisUse)

$axis_use (Gtk2::Gdk::AxisUse)

$window (Gtk2::Gdk::Window)

  • $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 (Gtk2::Gdk::Event)

Since: gtk+ 2.2

$screen (Gtk2::Gdk::Screen)

Since: gtk+ 2.2

  • $event (Gtk2::Gdk::Event)
  • $winid (Gtk2::Gdk::NativeWindow)

  • $display (Gtk2::Gdk::Display)
  • $event (Gtk2::Gdk::Event)
  • $winid (Gtk2::Gdk::NativeWindow)

Since: gtk+ 2.2

$event (Gtk2::Gdk::Event)

$newvalue (integer)

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

$newstate (Gtk2::Gdk::ModifierType)

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.

$newtime (integer) timestamp

$newvalue (Gtk2::Gdk::Window or undef)

  • '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'
  • 'damage' / 'GDK_DAMAGE'
  • 'event-last' / 'GDK_EVENT_LAST'

  • '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-2011 by the gtk2-perl team.

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

2022-06-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.