Mir
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 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 * 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
23
24#include <xkbcommon/xkbcommon.h>
25
26#ifdef __cplusplus
31extern "C" {
32#endif
33
44 struct xkb_rule_names* rules)
45MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_keymap_event_get_keymap_buffer() instead");
46
57 char const** buffer, size_t *length);
58
65
66#ifdef __cplusplus
67}
69#endif
70
71#endif /* MIR_TOOLKIT_KEYMAP_EVENT_H_ */
#define MIR_FOR_REMOVAL_IN_VERSION_1(message)
Definition: deprecations.h:30
struct MirKeymapEvent MirKeymapEvent
Definition: event.h:71
MirInputDeviceId mir_keymap_event_get_device_id(MirKeymapEvent const *ev)
Retrieve the device id the keymap reported by this MirKeymapEvent applies to.
int64_t MirInputDeviceId
Definition: mir_input_device_types.h:31
void mir_keymap_event_get_keymap_buffer(MirKeymapEvent const *ev, char const **buffer, size_t *length)
Retrieve the new keymap reported by this MirKeymapEvent.
void mir_keymap_event_get_rules(MirKeymapEvent const *ev, struct xkb_rule_names *rules) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_keymap_event_get_keymap_buffer() instead")
Retrieve the new keymap reported by this MirKeymapEvent.

Copyright © 2012-2022 Canonical Ltd.
Generated on Sun Oct 9 06:13:38 UTC 2022
This documentation is licensed under the GPL version 2 or 3.