Debian Codegraph @

clutter/x11/clutter-keymap-x11.h

raw
1 /*
2 * Clutter.
3 *
4 * An OpenGL based 'interactive canvas' library.
5 *
6 * Copyright (C) 2009 Intel Corp.
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20 *
21 * Author: Emmanuele Bassi <[email protected]>
22 */
23
24 #ifndef __CLUTTER_KEYMAP_X11_H__
25 #define __CLUTTER_KEYMAP_X11_H__
26
27 #include <glib-object.h>
28 #include <pango/pango.h>
29 #include <clutter/clutter-event.h>
30
31 G_BEGIN_DECLS
32
33 #define CLUTTER_TYPE_KEYMAP_X11 (_clutter_keymap_x11_get_type ())
34 #define CLUTTER_KEYMAP_X11(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_KEYMAP_X11, ClutterKeymapX11))
35 #define CLUTTER_IS_KEYMAP_X11(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_KEYMAP_X11))
36
37 typedef struct _ClutterKeymapX11 ClutterKeymapX11;
38
39 GType _clutter_keymap_x11_get_type (void) G_GNUC_CONST;
40
41 gint _clutter_keymap_x11_get_key_group (ClutterKeymapX11 *keymap,
42 ClutterModifierType state);
43 gboolean _clutter_keymap_x11_get_num_lock_state (ClutterKeymapX11 *keymap);
44 gboolean _clutter_keymap_x11_get_caps_lock_state (ClutterKeymapX11 *keymap);
45 gint _clutter_keymap_x11_translate_key_state (ClutterKeymapX11 *keymap,
46 guint hardware_keycode,
47 ClutterModifierType *modifier_state_p,
48 ClutterModifierType *mods_p);
49 gboolean _clutter_keymap_x11_get_is_modifier (ClutterKeymapX11 *keymap,
50 gint keycode);
51
52 PangoDirection _clutter_keymap_x11_get_direction (ClutterKeymapX11 *keymap);
53
54 G_END_DECLS
55
56 #endif /* __CLUTTER_KEYMAP_X11_H__ */