Mir
input_event.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2014-2016 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 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  * Authored by: Robert Carr <robert.carr@canonical.com>
17  */
18 
19 #ifndef MIR_TOOLKIT_INPUT_EVENT_H_
20 #define MIR_TOOLKIT_INPUT_EVENT_H_
21 
23 
24 #include <stdint.h>
25 #include <stdbool.h>
26 
27 #ifdef __cplusplus
28 
32 extern "C" {
33 #endif
34 
35 typedef int64_t MirInputDeviceId;
36 
37 typedef enum {
42 
46 typedef enum {
66 typedef unsigned int MirInputEventModifiers;
67 
68 #ifdef __cplusplus
69 }
71 #endif
72 
76 
77 #ifdef __cplusplus
78 
82 extern "C" {
83 #endif
84 
92 
100 
108 
117 
126 
135 
143 
153 
154 #ifdef __cplusplus
155 }
157 #endif
158 
159 #endif // MIR_TOOLKIT_INPUT_EVENT_H_
Definition: input_event.h:48
Definition: input_event.h:55
Definition: input_event.h:52
struct MirPointerEvent MirPointerEvent
An event type describing a change in pointer device state.
Definition: pointer_event.h:35
Definition: event_private.h:51
Definition: input_event.h:59
MirTouchEvent const * mir_input_event_get_touch_event(MirInputEvent const *ev)
Retrieve the MirTouchEvent associated with a given input event.
Definition: input_event.cpp:241
Definition: input_event.h:64
Definition: input_event.h:57
Definition: input_event.h:50
Definition: input_event.h:40
unsigned int MirInputEventModifiers
Definition: input_event.h:66
bool mir_input_event_has_cookie(MirInputEvent const *ev)
Query if an input event contains a cookie.
Definition: input_event.cpp:392
MirInputDeviceId mir_input_event_get_device_id(MirInputEvent const *ev)
Retrieves the device id responsible for generating an input event.
Definition: input_event.cpp:144
struct MirTouchEvent MirTouchEvent
An event type describing a change in touch device state.
Definition: touch_event.h:33
MirInputEventModifier
Description of key modifier state.
Definition: input_event.h:46
int64_t MirInputDeviceId
Definition: input_event.h:35
Definition: input_event.h:47
Definition: input_event.h:61
int64_t mir_input_event_get_event_time(MirInputEvent const *ev)
Retrieve the time at which an input event occurred.
Definition: input_event.cpp:165
Definition: input_event.h:51
Definition: input_event.h:60
Definition: input_event.h:49
Definition: input_event.h:53
MirPointerEvent const * mir_input_event_get_pointer_event(MirInputEvent const *ev)
Retrieve the MirPointerEvent associated with a given input event.
Definition: input_event.cpp:332
Definition: input_event.h:58
MirInputEventType
Definition: input_event.h:37
struct MirInputEvent MirInputEvent
Definition: event.h:56
Definition: input_event.h:38
Definition: input_event.h:62
MirInputEventType mir_input_event_get_type(MirInputEvent const *ev)
Retrieve the type of an input event.
Definition: input_event.cpp:123
Definition: input_event.h:63
Definition: input_event.h:54
MirCookie const * mir_input_event_get_cookie(MirInputEvent const *ev)
Returns the cookie associated with an input event.
Definition: input_event.cpp:433
Definition: input_event.h:56
MirKeyboardEvent const * mir_input_event_get_keyboard_event(MirInputEvent const *ev)
Retrieve the MirKeyboardEvent associated with a given input event.
Definition: input_event.cpp:202
Definition: input_event.h:39

Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016