1Gtk2::Gdk::Device(3)  User Contributed Perl Documentation Gtk2::Gdk::Device(3)
2
3
4

NAME

6       Gtk2::Gdk::Device - wrapper for GdkDevice
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::Gdk::Device
11

METHODS

13   list = $device->axes
14       Returns a list of hash references that resemble the GdkDeviceAxis
15       structure, i.e. that have three keys: "use", "min", and "max".
16
17   double = $device->get_axis ($use, ...)
18       ·   $use (Gtk2::Gdk::AxisUse)
19
20       ·   ... (list) of axis values such as the one returned by get_state
21
22   axisuse = $device->get_axis_use ($index)
23       ·   $index (integer)
24
25       Since: gtk+ 2.22
26
27   $device->set_axis_use ($index_, $use)
28       ·   $index_ (integer)
29
30       ·   $use (Gtk2::Gdk::AxisUse)
31
32   device = Gtk2::Gdk::Device->get_core_pointer
33   boolean = $device->has_cursor
34   list = $device->get_history ($window, $start, $stop)
35       ·   $window (Gtk2::Gdk::Window)
36
37       ·   $start (unsigned)
38
39       ·   $stop (unsigned)
40
41       Returns a list of hash references that resemble the GdkTimeCoord
42       structure, i.e. that have two keys: "time" and "axes".
43
44   (keyval, modifiers) = $device->get_key ($index)
45       ·   $index (integer)
46
47       Since: gtk+ 2.22
48
49   $device->set_key ($index_, $keyval, $modifiers)
50       ·   $index_ (integer)
51
52       ·   $keyval (integer)
53
54       ·   $modifiers (Gtk2::Gdk::ModifierType)
55
56   list = $device->keys
57       Returns a list of hash references that resemble the GdkDeviceKey
58       structure, i.e. that have two keys: "keyval" and "modifiers".
59
60   inputmode = $device->mode
61   inputmode = $device->get_mode
62       Since: gtk+ 2.22
63
64   boolean = $device->set_mode ($mode)
65       ·   $mode (Gtk2::Gdk::InputMode)
66
67   integer = $device->get_n_axes
68       Since: gtk+ 2.22
69
70   string = $device->name
71   string = $device->get_name
72       Since: gtk+ 2.22
73
74   inputsource = $device->source
75   inputsource = $device->get_source
76       Since: gtk+ 2.22
77
78   $device->set_source ($source)
79       ·   $source (Gtk2::Gdk::InputSource)
80
81   list = $device->get_state ($window)
82       ·   $window (Gtk2::Gdk::Window)
83
84       Returns the modifier mask and a list of values of the axes.
85

ENUMS AND FLAGS

87   enum Gtk2::Gdk::AxisUse
88       ·   'ignore' / 'GDK_AXIS_IGNORE'
89
90       ·   'x' / 'GDK_AXIS_X'
91
92       ·   'y' / 'GDK_AXIS_Y'
93
94       ·   'pressure' / 'GDK_AXIS_PRESSURE'
95
96       ·   'xtilt' / 'GDK_AXIS_XTILT'
97
98       ·   'ytilt' / 'GDK_AXIS_YTILT'
99
100       ·   'wheel' / 'GDK_AXIS_WHEEL'
101
102       ·   'last' / 'GDK_AXIS_LAST'
103
104   enum Gtk2::Gdk::InputMode
105       ·   'disabled' / 'GDK_MODE_DISABLED'
106
107       ·   'screen' / 'GDK_MODE_SCREEN'
108
109       ·   'window' / 'GDK_MODE_WINDOW'
110
111   enum Gtk2::Gdk::InputSource
112       ·   'mouse' / 'GDK_SOURCE_MOUSE'
113
114       ·   'pen' / 'GDK_SOURCE_PEN'
115
116       ·   'eraser' / 'GDK_SOURCE_ERASER'
117
118       ·   'cursor' / 'GDK_SOURCE_CURSOR'
119
120   flags Gtk2::Gdk::ModifierType
121       ·   'shift-mask' / 'GDK_SHIFT_MASK'
122
123       ·   'lock-mask' / 'GDK_LOCK_MASK'
124
125       ·   'control-mask' / 'GDK_CONTROL_MASK'
126
127       ·   'mod1-mask' / 'GDK_MOD1_MASK'
128
129       ·   'mod2-mask' / 'GDK_MOD2_MASK'
130
131       ·   'mod3-mask' / 'GDK_MOD3_MASK'
132
133       ·   'mod4-mask' / 'GDK_MOD4_MASK'
134
135       ·   'mod5-mask' / 'GDK_MOD5_MASK'
136
137       ·   'button1-mask' / 'GDK_BUTTON1_MASK'
138
139       ·   'button2-mask' / 'GDK_BUTTON2_MASK'
140
141       ·   'button3-mask' / 'GDK_BUTTON3_MASK'
142
143       ·   'button4-mask' / 'GDK_BUTTON4_MASK'
144
145       ·   'button5-mask' / 'GDK_BUTTON5_MASK'
146
147       ·   'super-mask' / 'GDK_SUPER_MASK'
148
149       ·   'hyper-mask' / 'GDK_HYPER_MASK'
150
151       ·   'meta-mask' / 'GDK_META_MASK'
152
153       ·   'release-mask' / 'GDK_RELEASE_MASK'
154
155       ·   'modifier-mask' / 'GDK_MODIFIER_MASK'
156

SEE ALSO

158       Gtk2, Glib::Object
159
161       Copyright (C) 2003-2011 by the gtk2-perl team.
162
163       This software is licensed under the LGPL.  See Gtk2 for a full notice.
164
165
166
167perl v5.30.0                      2019-07-26              Gtk2::Gdk::Device(3)
Impressum