Gtk2::Gdk::Device(3p)

NAME
Gtk2::Gdk::Device - wrapper for GdkDevice

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

METHODS

  list = $device->axes
Returns a list of hash references that resemble the GdkDeviceAxis structure, i.e. that have three keys: "use", "min", and "max".

  double = $device->get_axis ($use, ...)

•   $use (Gtk2::Gdk::AxisUse)

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

  axisuse = $device->get_axis_use ($index)

•   $index (integer)

Since: gtk+ 2.22

  $device->set_axis_use ($index_, $use)

•   $index_ (integer)

•   $use (Gtk2::Gdk::AxisUse)

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

  boolean = $device->has_cursor

  list = $device->get_history ($window, $start, $stop)

•   $window (Gtk2::Gdk::Window)

•   $start (unsigned)

•   $stop (unsigned)

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

  (keyval, modifiers) = $device->get_key ($index)

•   $index (integer)

Since: gtk+ 2.22

  $device->set_key ($index_, $keyval, $modifiers)

•   $index_ (integer)

•   $keyval (integer)

•   $modifiers (Gtk2::Gdk::ModifierType)

  list = $device->keys
Returns a list of hash references that resemble the GdkDeviceKey structure, i.e. that have two keys: "keyval" and "modifiers".

  inputmode = $device->mode

  inputmode = $device->get_mode
Since: gtk+ 2.22

  boolean = $device->set_mode ($mode)

•   $mode (Gtk2::Gdk::InputMode)

  integer = $device->get_n_axes
Since: gtk+ 2.22

  string = $device->name

  string = $device->get_name
Since: gtk+ 2.22

  inputsource = $device->source

  inputsource = $device->get_source
Since: gtk+ 2.22

  $device->set_source ($source)

•   $source (Gtk2::Gdk::InputSource)

  list = $device->get_state ($window)

•   $window (Gtk2::Gdk::Window)

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'

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

SEE ALSO
Gtk2, Glib::Object

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

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