Debian Codegraph @

gdk/win32/gdkwin32keys.h

raw
1 /* GDK - The GIMP Drawing Kit
2 * Copyright (C) 2010 Red Hat, Inc.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef __GDK_WIN32_KEYS_H__
19 #define __GDK_WIN32_KEYS_H__
20
21 #if !defined (__GDKWIN32_H_INSIDE__) && !defined (GDK_COMPILATION)
22 #error "Only <gdk/gdkwin32.h> can be included directly."
23 #endif
24
25 #include <gdk/gdk.h>
26
27 G_BEGIN_DECLS
28
29 /**
30 * GdkWin32KeymapMatch:
31 * @GDK_WIN32_KEYMAP_MATCH_NONE: no matches found. Output is not valid.
32 * @GDK_WIN32_KEYMAP_MATCH_INCOMPLETE: the sequence matches so far, but is incomplete. Output is not valid.
33 * @GDK_WIN32_KEYMAP_MATCH_PARTIAL: the sequence matches up to the last key,
34 * which does not match. Output is valid.
35 * @GDK_WIN32_KEYMAP_MATCH_EXACT: the sequence matches exactly. Output is valid.
36 *
37 * An enumeration describing the result of a deadkey combination matching.
38 */
39 typedef enum
40 {
41 GDK_WIN32_KEYMAP_MATCH_NONE,
42 GDK_WIN32_KEYMAP_MATCH_INCOMPLETE,
43 GDK_WIN32_KEYMAP_MATCH_PARTIAL,
44 GDK_WIN32_KEYMAP_MATCH_EXACT
45 } GdkWin32KeymapMatch;
46
47 #ifdef GDK_COMPILATION
48 typedef struct _GdkWin32Keymap GdkWin32Keymap;
49 #else
50 typedef GdkKeymap GdkWin32Keymap;
51 #endif
52 typedef struct _GdkWin32KeymapClass GdkWin32KeymapClass;
53
54 #define GDK_TYPE_WIN32_KEYMAP (gdk_win32_keymap_get_type())
55 #define GDK_WIN32_KEYMAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_WIN32_KEYMAP, GdkWin32Keymap))
56 #define GDK_WIN32_KEYMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_WIN32_KEYMAP, GdkWin32KeymapClass))
57 #define GDK_IS_WIN32_KEYMAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_WIN32_KEYMAP))
58 #define GDK_IS_WIN32_KEYMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_WIN32_KEYMAP))
59 #define GDK_WIN32_KEYMAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_WIN32_KEYMAP, GdkWin32KeymapClass))
60
61 GDK_AVAILABLE_IN_ALL
62 GType gdk_win32_keymap_get_type (void);
63
64 GDK_AVAILABLE_IN_3_20
65 GdkWin32KeymapMatch gdk_win32_keymap_check_compose (GdkWin32Keymap *keymap,
66 guint16 *compose_buffer,
67 gsize compose_buffer_len,
68 guint16 *output,
69 gsize *output_len);
70
71 G_END_DECLS
72
73 #endif /* __GDK_WIN32_KEYMAP_H__ */