Mir
include
client
mir_toolkit
events
keymap_event.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2014 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_EVENTS_KEYMAP_EVENT_H_
20
#define MIR_TOOLKIT_EVENTS_KEYMAP_EVENT_H_
21
22
#include <
mir_toolkit/events/event.h
>
23
24
#include <xkbcommon/xkbcommon.h>
25
26
#ifdef __cplusplus
27
31
extern
"C"
{
32
#endif
33
43
void
mir_keymap_event_get_rules
(
MirKeymapEvent
const
* ev,
44
struct
xkb_rule_names* rules)
45
__attribute__ ((deprecated));
46
56
void
mir_keymap_event_get_keymap_buffer
(
MirKeymapEvent
const
* ev,
57
char
const
** buffer,
size_t
*length);
58
64
MirInputDeviceId
mir_keymap_event_get_device_id
(
MirKeymapEvent
const
* ev);
65
66
#ifdef __cplusplus
67
}
69
#endif
70
71
#endif
/* MIR_TOOLKIT_KEYMAP_EVENT_H_ */
mir_keymap_event_get_rules
void mir_keymap_event_get_rules(MirKeymapEvent const *ev, struct xkb_rule_names *rules) __attribute__((deprecated))
Retrieve the new keymap reported by this MirKeymapEvent.
mir_keymap_event_get_keymap_buffer
void mir_keymap_event_get_keymap_buffer(MirKeymapEvent const *ev, char const **buffer, size_t *length)
Retrieve the new keymap reported by this MirKeymapEvent.
mir_keymap_event_get_device_id
MirInputDeviceId mir_keymap_event_get_device_id(MirKeymapEvent const *ev)
Retrieve the device id the keymap reported by this MirKeymapEvent applies to.
MirInputDeviceId
int64_t MirInputDeviceId
Definition:
input_event.h:35
MirKeymapEvent
struct MirKeymapEvent MirKeymapEvent
Definition:
event.h:59
event.h
Copyright © 2012-2016 Canonical Ltd.
Generated on Sat Dec 3 12:48:59 UTC 2016