Gtk2::Gdk::Device(3) User Contributed Perl Documentation Gtk2::Gdk::Device(3)
NAME
Gtk2::Gdk::Device
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, ...)
o $use (Gtk2::Gdk::AxisUse)
o ... (list) of axis values such as the one returned by get_state
$device->set_axis_use ($index_, $use)
o $index_ (integer)
o $use (Gtk2::Gdk::AxisUse)
device = Gtk2::Gdk::Device->get_core_pointer
boolean = $device->has_cursor
list = $device->get_history ($window, $start, $stop)
o $window (Gtk2::Gdk::Window)
o $start (unsigned)
o $stop (unsigned)
Returns a list of hash references that resemble the GdkTimeCoord structure, i.e. that have two keys: "time" and "axes".
$device->set_key ($index_, $keyval, $modifiers)
o $index_ (integer)
o $keyval (integer)
o $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
boolean = $device->set_mode ($mode)
o $mode (Gtk2::Gdk::InputMode)
string = $device->name
inputsource = $device->source
$device->set_source ($source)
o $source (Gtk2::Gdk::InputSource)
list = $device->get_state ($window)
o $window (Gtk2::Gdk::Window)
Returns the modifier mask and a list of values of the axes.
ENUMS AND FLAGS
enum Gtk2::Gdk::AxisUse
o 'ignore' / 'GDK_AXIS_IGNORE'
o 'x' / 'GDK_AXIS_X'
o 'y' / 'GDK_AXIS_Y'
o 'pressure' / 'GDK_AXIS_PRESSURE'
o 'xtilt' / 'GDK_AXIS_XTILT'
o 'ytilt' / 'GDK_AXIS_YTILT'
o 'wheel' / 'GDK_AXIS_WHEEL'
o 'last' / 'GDK_AXIS_LAST'
enum Gtk2::Gdk::InputMode
o 'disabled' / 'GDK_MODE_DISABLED'
o 'screen' / 'GDK_MODE_SCREEN'
o 'window' / 'GDK_MODE_WINDOW'
enum Gtk2::Gdk::InputSource
o 'mouse' / 'GDK_SOURCE_MOUSE'
o 'pen' / 'GDK_SOURCE_PEN'
o 'eraser' / 'GDK_SOURCE_ERASER'
o 'cursor' / 'GDK_SOURCE_CURSOR'
flags Gtk2::Gdk::ModifierType
o 'shift-mask' / 'GDK_SHIFT_MASK'
o 'lock-mask' / 'GDK_LOCK_MASK'
o 'control-mask' / 'GDK_CONTROL_MASK'
o 'mod1-mask' / 'GDK_MOD1_MASK'
o 'mod2-mask' / 'GDK_MOD2_MASK'
o 'mod3-mask' / 'GDK_MOD3_MASK'
o 'mod4-mask' / 'GDK_MOD4_MASK'
o 'mod5-mask' / 'GDK_MOD5_MASK'
o 'button1-mask' / 'GDK_BUTTON1_MASK'
o 'button2-mask' / 'GDK_BUTTON2_MASK'
o 'button3-mask' / 'GDK_BUTTON3_MASK'
o 'button4-mask' / 'GDK_BUTTON4_MASK'
o 'button5-mask' / 'GDK_BUTTON5_MASK'
o 'super-mask' / 'GDK_SUPER_MASK'
o 'hyper-mask' / 'GDK_HYPER_MASK'
o 'meta-mask' / 'GDK_META_MASK'
o 'release-mask' / 'GDK_RELEASE_MASK'
o 'modifier-mask' / 'GDK_MODIFIER_MASK'
SEE ALSO
Gtk2, Glib::Object
COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.12.1 2010-07-05 Gtk2::Gdk::Device(3)