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 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 $device->set_axis_use ($index_, $use)
23 · $index_ (integer)
24
25 · $use (Gtk2::Gdk::AxisUse)
26
27 device = Gtk2::Gdk::Device->get_core_pointer
28 boolean = $device->has_cursor
29 list = $device->get_history ($window, $start, $stop)
30 · $window (Gtk2::Gdk::Window)
31
32 · $start (unsigned)
33
34 · $stop (unsigned)
35
36 Returns a list of hash references that resemble the GdkTimeCoord
37 structure, i.e. that have two keys: "time" and "axes".
38
39 $device->set_key ($index_, $keyval, $modifiers)
40 · $index_ (integer)
41
42 · $keyval (integer)
43
44 · $modifiers (Gtk2::Gdk::ModifierType)
45
46 list = $device->keys
47 Returns a list of hash references that resemble the GdkDeviceKey
48 structure, i.e. that have two keys: "keyval" and "modifiers".
49
50 inputmode = $device->mode
51 boolean = $device->set_mode ($mode)
52 · $mode (Gtk2::Gdk::InputMode)
53
54 string = $device->name
55 inputsource = $device->source
56 $device->set_source ($source)
57 · $source (Gtk2::Gdk::InputSource)
58
59 list = $device->get_state ($window)
60 · $window (Gtk2::Gdk::Window)
61
62 Returns the modifier mask and a list of values of the axes.
63
65 enum Gtk2::Gdk::AxisUse
66 · 'ignore' / 'GDK_AXIS_IGNORE'
67
68 · 'x' / 'GDK_AXIS_X'
69
70 · 'y' / 'GDK_AXIS_Y'
71
72 · 'pressure' / 'GDK_AXIS_PRESSURE'
73
74 · 'xtilt' / 'GDK_AXIS_XTILT'
75
76 · 'ytilt' / 'GDK_AXIS_YTILT'
77
78 · 'wheel' / 'GDK_AXIS_WHEEL'
79
80 · 'last' / 'GDK_AXIS_LAST'
81
82 enum Gtk2::Gdk::InputMode
83 · 'disabled' / 'GDK_MODE_DISABLED'
84
85 · 'screen' / 'GDK_MODE_SCREEN'
86
87 · 'window' / 'GDK_MODE_WINDOW'
88
89 enum Gtk2::Gdk::InputSource
90 · 'mouse' / 'GDK_SOURCE_MOUSE'
91
92 · 'pen' / 'GDK_SOURCE_PEN'
93
94 · 'eraser' / 'GDK_SOURCE_ERASER'
95
96 · 'cursor' / 'GDK_SOURCE_CURSOR'
97
98 flags Gtk2::Gdk::ModifierType
99 · 'shift-mask' / 'GDK_SHIFT_MASK'
100
101 · 'lock-mask' / 'GDK_LOCK_MASK'
102
103 · 'control-mask' / 'GDK_CONTROL_MASK'
104
105 · 'mod1-mask' / 'GDK_MOD1_MASK'
106
107 · 'mod2-mask' / 'GDK_MOD2_MASK'
108
109 · 'mod3-mask' / 'GDK_MOD3_MASK'
110
111 · 'mod4-mask' / 'GDK_MOD4_MASK'
112
113 · 'mod5-mask' / 'GDK_MOD5_MASK'
114
115 · 'button1-mask' / 'GDK_BUTTON1_MASK'
116
117 · 'button2-mask' / 'GDK_BUTTON2_MASK'
118
119 · 'button3-mask' / 'GDK_BUTTON3_MASK'
120
121 · 'button4-mask' / 'GDK_BUTTON4_MASK'
122
123 · 'button5-mask' / 'GDK_BUTTON5_MASK'
124
125 · 'super-mask' / 'GDK_SUPER_MASK'
126
127 · 'hyper-mask' / 'GDK_HYPER_MASK'
128
129 · 'meta-mask' / 'GDK_META_MASK'
130
131 · 'release-mask' / 'GDK_RELEASE_MASK'
132
133 · 'modifier-mask' / 'GDK_MODIFIER_MASK'
134
136 Gtk2, Glib::Object
137
139 Copyright (C) 2003-2008 by the gtk2-perl team.
140
141 This software is licensed under the LGPL. See Gtk2 for a full notice.
142
143
144
145perl v5.12.0 2010-05-02 Gtk2::Gdk::Device(3)