| 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 |
|
| 22 |
#include <gdk/gdk.h> |
| 23 |
|
| 24 |
G_BEGIN_DECLS |
| 25 |
|
| 26 |
/** |
| 27 |
* GdkWin32KeymapMatch: |
| 28 |
* @GDK_WIN32_KEYMAP_MATCH_NONE: no matches found. Output is not valid. |
| 29 |
* @GDK_WIN32_KEYMAP_MATCH_INCOMPLETE: the sequence matches so far, but is incomplete. Output is not valid. |
| 30 |
* @GDK_WIN32_KEYMAP_MATCH_PARTIAL: the sequence matches up to the last key, |
| 31 |
* which does not match. Output is valid. |
| 32 |
* @GDK_WIN32_KEYMAP_MATCH_EXACT: the sequence matches exactly. Output is valid. |
| 33 |
* |
| 34 |
* An enumeration describing the result of a deadkey combination matching. |
| 35 |
*/ |
| 36 |
typedef enum |
| 37 |
{ |
| 38 |
GDK_WIN32_KEYMAP_MATCH_NONE, |
| 39 |
GDK_WIN32_KEYMAP_MATCH_INCOMPLETE, |
| 40 |
GDK_WIN32_KEYMAP_MATCH_PARTIAL, |
| 41 |
GDK_WIN32_KEYMAP_MATCH_EXACT |
| 42 |
} GdkWin32KeymapMatch; |
| 43 |
|
| 44 |
#ifdef GDK_COMPILATION |
| 45 |
typedef struct _GdkWin32Keymap GdkWin32Keymap; |
| 46 |
#else |
| 47 |
typedef GdkKeymap GdkWin32Keymap; |
| 48 |
#endif |
| 49 |
typedef struct _GdkWin32KeymapClass GdkWin32KeymapClass; |
| 50 |
|
| 51 |
#define GDK_TYPE_WIN32_KEYMAP (gdk_win32_keymap_get_type()) |
| 52 |
#define GDK_WIN32_KEYMAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_WIN32_KEYMAP, GdkWin32Keymap)) |
| 53 |
#define GDK_WIN32_KEYMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_WIN32_KEYMAP, GdkWin32KeymapClass)) |
| 54 |
#define GDK_IS_WIN32_KEYMAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_WIN32_KEYMAP)) |
| 55 |
#define GDK_IS_WIN32_KEYMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_WIN32_KEYMAP)) |
| 56 |
#define GDK_WIN32_KEYMAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_WIN32_KEYMAP, GdkWin32KeymapClass)) |
| 57 |
|
| 58 |
GType gdk_win32_keymap_get_type (void); |
| 59 |
|
| 60 |
GdkWin32KeymapMatch gdk_win32_keymap_check_compose (GdkWin32Keymap *keymap, |
| 61 |
guint *compose_buffer, |
| 62 |
gsize compose_buffer_len, |
| 63 |
guint16 *output, |
| 64 |
gsize *output_len); |
| 65 |
|
| 66 |
G_END_DECLS |
| 67 |
|
| 68 |
#endif /* __GDK_WIN32_KEYMAP_H__ */ |