Gtk2::Gdk::Device(3) User Contributed Perl Documentation Gtk2::Gdk::Device(3)

Gtk2::Gdk::Device - wrapper for GdkDevice

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

list = $device->axes

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

  • $use (Gtk2::Gdk::AxisUse)
  • ... (list) of axis values such as the one returned by get_state

$index (integer)

Since: gtk+ 2.22

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

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

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".

$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)

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.

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

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

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

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

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

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

2022-05-29 perl v5.36.0