1Gtk2::Gdk::Device(3) User Contributed Perl Documentation Gtk2::Gdk::Device(3)
2
3
4
6 Gtk2::Gdk::Device
7
9 Glib::Object
10 +----Gtk2::Gdk::Device
11
13 list = $device->axes
14
15 Returns a list of hash references that resemble the GdkDeviceAxis
16 structure, i.e. that have three keys: "use", "min", and "max".
17
18 double = $device->get_axis ($use, ...)
19
20 * $use (Gtk2::Gdk::AxisUse)
21 * ... (list) of axis values such as the one returned by get_state
22
23 $device->set_axis_use ($index_, $use)
24
25 * $index_ (integer)
26 * $use (Gtk2::Gdk::AxisUse)
27
28 device = Gtk2::Gdk::Device->get_core_pointer
29
30 boolean = $device->has_cursor
31
32 list = $device->get_history ($window, $start, $stop)
33
34 * $window (Gtk2::Gdk::Window)
35 * $start (unsigned)
36 * $stop (unsigned)
37
38 Returns a list of hash references that resemble the GdkTimeCoord
39 structure, i.e. that have two keys: "time" and "axes".
40
41 $device->set_key ($index_, $keyval, $modifiers)
42
43 * $index_ (integer)
44 * $keyval (integer)
45 * $modifiers (Gtk2::Gdk::ModifierType)
46
47 list = $device->keys
48
49 Returns a list of hash references that resemble the GdkDeviceKey
50 structure, i.e. that have two keys: "keyval" and "modifiers".
51
52 inputmode = $device->mode
53
54 boolean = $device->set_mode ($mode)
55
56 * $mode (Gtk2::Gdk::InputMode)
57
58 string = $device->name
59
60 inputsource = $device->source
61
62 $device->set_source ($source)
63
64 * $source (Gtk2::Gdk::InputSource)
65
66 list = $device->get_state ($window)
67
68 * $window (Gtk2::Gdk::Window)
69
70 Returns the modifier mask and a list of values of the axes.
71
73 enum Gtk2::Gdk::AxisUse
74
75 * 'ignore' / 'GDK_AXIS_IGNORE'
76 * 'x' / 'GDK_AXIS_X'
77 * 'y' / 'GDK_AXIS_Y'
78 * 'pressure' / 'GDK_AXIS_PRESSURE'
79 * 'xtilt' / 'GDK_AXIS_XTILT'
80 * 'ytilt' / 'GDK_AXIS_YTILT'
81 * 'wheel' / 'GDK_AXIS_WHEEL'
82 * 'last' / 'GDK_AXIS_LAST'
83
84 enum Gtk2::Gdk::InputMode
85
86 * 'disabled' / 'GDK_MODE_DISABLED'
87 * 'screen' / 'GDK_MODE_SCREEN'
88 * 'window' / 'GDK_MODE_WINDOW'
89
90 enum Gtk2::Gdk::InputSource
91
92 * 'mouse' / 'GDK_SOURCE_MOUSE'
93 * 'pen' / 'GDK_SOURCE_PEN'
94 * 'eraser' / 'GDK_SOURCE_ERASER'
95 * 'cursor' / 'GDK_SOURCE_CURSOR'
96
97 flags Gtk2::Gdk::ModifierType
98
99 * 'shift-mask' / 'GDK_SHIFT_MASK'
100 * 'lock-mask' / 'GDK_LOCK_MASK'
101 * 'control-mask' / 'GDK_CONTROL_MASK'
102 * 'mod1-mask' / 'GDK_MOD1_MASK'
103 * 'mod2-mask' / 'GDK_MOD2_MASK'
104 * 'mod3-mask' / 'GDK_MOD3_MASK'
105 * 'mod4-mask' / 'GDK_MOD4_MASK'
106 * 'mod5-mask' / 'GDK_MOD5_MASK'
107 * 'button1-mask' / 'GDK_BUTTON1_MASK'
108 * 'button2-mask' / 'GDK_BUTTON2_MASK'
109 * 'button3-mask' / 'GDK_BUTTON3_MASK'
110 * 'button4-mask' / 'GDK_BUTTON4_MASK'
111 * 'button5-mask' / 'GDK_BUTTON5_MASK'
112 * 'super-mask' / 'GDK_SUPER_MASK'
113 * 'hyper-mask' / 'GDK_HYPER_MASK'
114 * 'meta-mask' / 'GDK_META_MASK'
115 * 'release-mask' / 'GDK_RELEASE_MASK'
116 * 'modifier-mask' / 'GDK_MODIFIER_MASK'
117
119 Gtk2, Glib::Object
120
122 Copyright (C) 2003-2007 by the gtk2-perl team.
123
124 This software is licensed under the LGPL. See Gtk2 for a full notice.
125
126
127
128perl v5.8.8 2007-03-18 Gtk2::Gdk::Device(3)