Mir
enums.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2014-2020 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 2 or 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17 
18 #ifndef MIR_TOOLKIT_EVENT_ENUMS_H_
19 #define MIR_TOOLKIT_EVENT_ENUMS_H_
20 
21 #include <mir_toolkit/common.h>
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 typedef enum
28 {
29  mir_event_type_key [[deprecated("UNUSED since Mir 0.26")]],
30  mir_event_type_motion [[deprecated("UNUSED since Mir 0.26")]],
36  /* Type for new style input event will be returned from mir_event_get_type
37  when old style event type was mir_event_type_key or mir_event_type_motion */
39  mir_event_type_input_configuration [[deprecated("UNUSED since Mir 0.26")]],
43 } MirEventType;
44 
45 typedef enum {
50 
53 
57 typedef enum {
77 typedef unsigned int MirInputEventModifiers;
78 
82 typedef enum {
83  /* A key has come up (released) */
85  /* A key has gone down (pressed) */
87  /* System policy has triggered a key repeat on a key
88  which was already down */
90 
93 
97 typedef enum {
98  /* This touch point is going up */
100  /* This touch point is going down */
102  /* Axis values have changed on this touch point */
104 
107 
111 typedef enum {
112 /* Axis representing the x coordinate for the touch */
114 /* Axis representing the y coordinate for the touch */
116 /* Axis representing pressure of the touch */
118 /* Axis representing the length of the major axis of an ellipse
119  centered at the touch point */
121 /* Axis representing the length of the minor axis of an ellipse
122  centered at the touch point */
124 /* Axis representing the diameter of a circle centered on the touch
125  point */
127 
130 
134 typedef enum {
135 // Tool type could not be determined
137 // Touch is made with a finger
139 // Touch is made with a stylus
141 
144 
145 
149 typedef enum {
150  /* A pointer button has come up */
152  /* A pointer button has gone down */
154  /* The pointer has entered the surface to which this event was delivered */
156  /* The pointer has left the surface to which this event was delivered */
158  /* Axis values have changed for the pointer */
160 
163 
167 typedef enum {
168 /* Absolute axis containing the x coordinate of the pointer */
170 /* Absolute axis containing the y coordinate of the pointer */
172 /* Relative axis containing ticks reported by the vertical scroll wheel */
174 /* Relative axis containing ticks reported by the horizontal scroll wheel */
176 /* Relative axis containing the last reported x differential from the pointer */
178 /* Relative axis containing the last reported y differential from the pointer */
180 /* Relative axis containing physical mouse wheel clicks reported by the vertical scroll wheel */
182 /* Relative axis containing physical mouse wheel clicks reported by the horizontal scroll wheel */
184 
187 
188 /*
189  * Identifiers for pointer buttons
190  */
191 typedef enum {
199  mir_pointer_button_task = 1 << 7
201 typedef unsigned int MirPointerButtons;
202 
206 typedef enum {
213 
214 #ifdef __cplusplus
215 }
216 #endif
217 
218 #endif /* MIR_TOOLKIT_EVENT_ENUMS_H_ */
MirPointerAction
Possible pointer actions.
Definition: enums.h:149
@ mir_pointer_action_motion
Definition: enums.h:159
@ mir_pointer_actions
Definition: enums.h:161
@ mir_pointer_action_leave
Definition: enums.h:157
@ mir_pointer_action_button_down
Definition: enums.h:153
@ mir_pointer_action_button_up
Definition: enums.h:151
@ mir_pointer_action_enter
Definition: enums.h:155
unsigned int MirPointerButtons
Definition: enums.h:201
MirInputEventType
Definition: enums.h:45
@ mir_input_event_type_keyboard_resync
Definition: enums.h:49
@ mir_input_event_type_pointer
Definition: enums.h:48
@ mir_input_event_type_touch
Definition: enums.h:47
@ mir_input_event_type_key
Definition: enums.h:46
@ mir_input_event_types
Definition: enums.h:51
MirEventType
Definition: enums.h:28
@ mir_event_type_close_window
Definition: enums.h:35
@ mir_event_type_key
Definition: enums.h:29
@ mir_event_type_orientation
Definition: enums.h:34
@ mir_event_type_prompt_session_state_change
Definition: enums.h:33
@ mir_event_type_input_configuration
Definition: enums.h:39
@ mir_event_type_window_placement
Definition: enums.h:42
@ mir_event_type_window_output
Definition: enums.h:40
@ mir_event_type_input_device_state
Definition: enums.h:41
@ mir_event_type_input
Definition: enums.h:38
@ mir_event_type_resize
Definition: enums.h:32
@ mir_event_type_motion
Definition: enums.h:30
@ mir_event_type_window
Definition: enums.h:31
MirPointerButton
Definition: enums.h:191
@ mir_pointer_button_primary
Definition: enums.h:192
@ mir_pointer_button_secondary
Definition: enums.h:193
@ mir_pointer_button_tertiary
Definition: enums.h:194
@ mir_pointer_button_extra
Definition: enums.h:198
@ mir_pointer_button_side
Definition: enums.h:197
@ mir_pointer_button_forward
Definition: enums.h:196
@ mir_pointer_button_task
Definition: enums.h:199
@ mir_pointer_button_back
Definition: enums.h:195
MirKeyboardAction
Possible actions for changing key state.
Definition: enums.h:82
@ mir_keyboard_action_repeat
Definition: enums.h:89
@ mir_keyboard_action_down
Definition: enums.h:86
@ mir_keyboard_action_up
Definition: enums.h:84
@ mir_keyboard_actions
Definition: enums.h:91
MirTouchAxis
Identifiers for touch axis.
Definition: enums.h:111
@ mir_touch_axis_y
Definition: enums.h:115
@ mir_touch_axis_pressure
Definition: enums.h:117
@ mir_touch_axis_touch_minor
Definition: enums.h:123
@ mir_touch_axes
Definition: enums.h:128
@ mir_touch_axis_touch_major
Definition: enums.h:120
@ mir_touch_axis_x
Definition: enums.h:113
@ mir_touch_axis_size
Definition: enums.h:126
MirPointerAxisSource
Identifiers for pointer event source.
Definition: enums.h:206
@ mir_pointer_axis_source_wheel_tilt
Definition: enums.h:211
@ mir_pointer_axis_source_wheel
Definition: enums.h:208
@ mir_pointer_axis_source_none
Definition: enums.h:207
@ mir_pointer_axis_source_continuous
Definition: enums.h:210
@ mir_pointer_axis_source_finger
Definition: enums.h:209
MirTouchTooltype
Identifiers for per-touch tool types.
Definition: enums.h:134
@ mir_touch_tooltype_finger
Definition: enums.h:138
@ mir_touch_tooltypes
Definition: enums.h:142
@ mir_touch_tooltype_stylus
Definition: enums.h:140
@ mir_touch_tooltype_unknown
Definition: enums.h:136
MirTouchAction
Possible per touch actions for state changing.
Definition: enums.h:97
@ mir_touch_action_down
Definition: enums.h:101
@ mir_touch_actions
Definition: enums.h:105
@ mir_touch_action_up
Definition: enums.h:99
@ mir_touch_action_change
Definition: enums.h:103
MirPointerAxis
Identifiers for pointer axis.
Definition: enums.h:167
@ mir_pointer_axis_x
Definition: enums.h:169
@ mir_pointer_axes
Definition: enums.h:185
@ mir_pointer_axis_vscroll_discrete
Definition: enums.h:181
@ mir_pointer_axis_hscroll
Definition: enums.h:175
@ mir_pointer_axis_y
Definition: enums.h:171
@ mir_pointer_axis_relative_y
Definition: enums.h:179
@ mir_pointer_axis_relative_x
Definition: enums.h:177
@ mir_pointer_axis_vscroll
Definition: enums.h:173
@ mir_pointer_axis_hscroll_discrete
Definition: enums.h:183
MirInputEventModifier
Description of key modifier state.
Definition: enums.h:57
@ mir_input_event_modifier_caps_lock
Definition: enums.h:73
@ mir_input_event_modifier_ctrl
Definition: enums.h:67
@ mir_input_event_modifier_meta
Definition: enums.h:70
@ mir_input_event_modifier_meta_right
Definition: enums.h:72
@ mir_input_event_modifier_alt_right
Definition: enums.h:61
@ mir_input_event_modifier_alt
Definition: enums.h:59
@ mir_input_event_modifier_num_lock
Definition: enums.h:74
@ mir_input_event_modifier_alt_left
Definition: enums.h:60
@ mir_input_event_modifier_shift
Definition: enums.h:62
@ mir_input_event_modifier_meta_left
Definition: enums.h:71
@ mir_input_event_modifier_shift_right
Definition: enums.h:64
@ mir_input_event_modifier_ctrl_left
Definition: enums.h:68
@ mir_input_event_modifier_ctrl_right
Definition: enums.h:69
@ mir_input_event_modifier_function
Definition: enums.h:66
@ mir_input_event_modifier_scroll_lock
Definition: enums.h:75
@ mir_input_event_modifier_sym
Definition: enums.h:65
@ mir_input_event_modifier_none
Definition: enums.h:58
@ mir_input_event_modifier_shift_left
Definition: enums.h:63
unsigned int MirInputEventModifiers
Definition: enums.h:77

Copyright © 2012-2022 Canonical Ltd.
Generated on śro, 1 cze 2022, 16:52:55 UTC
This documentation is licensed under the GPL version 2 or 3.