man Gtk2::Gdk::Device () - Gtk2::Gdk::Device

NAME

Gtk2::Gdk::Device

HIERARCHY

  Glib::Object
  +----Gtk2::Gdk::Device

METHODS

Returns a list of hash references that resemble the GdkDeviceAxis structure, i.e. that have three keys: use, min, and max.

* ... (list) of axis values such as the one returned by get_state

device = Gtk2::Gdk::Device->get_core_pointer

Returns a list of hash references that resemble the GdkTimeCoord structure, i.e. that have two keys: time and axes. Returns a list of hash references that resemble the GdkDeviceKey structure, i.e. that have two keys: keyval and modifiers.

$device->set_source ($source)

Returns the modifier mask and a list of values of the axes.

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::InputMode

* 'disabled' / 'GDK_MODE_DISABLED'
* 'screen' / 'GDK_MODE_SCREEN'
* 'window' / 'GDK_MODE_WINDOW'

enum Gtk2::Gdk::InputSource

* 'mouse' / 'GDK_SOURCE_MOUSE'
* 'pen' / 'GDK_SOURCE_PEN'
* 'eraser' / 'GDK_SOURCE_ERASER'
* 'cursor' / 'GDK_SOURCE_CURSOR'

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::Object

COPYRIGHT

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

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