diff options
Diffstat (limited to 'gdk/gdkkeysprivate.h')
-rw-r--r-- | gdk/gdkkeysprivate.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gdk/gdkkeysprivate.h b/gdk/gdkkeysprivate.h index 96f67b1519..564e63da52 100644 --- a/gdk/gdkkeysprivate.h +++ b/gdk/gdkkeysprivate.h @@ -22,10 +22,14 @@ G_BEGIN_DECLS +#define GDK_TYPE_KEYMAP (gdk_keymap_get_type ()) +#define GDK_KEYMAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_KEYMAP, GdkKeymap)) +#define GDK_IS_KEYMAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_KEYMAP)) #define GDK_KEYMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_KEYMAP, GdkKeymapClass)) #define GDK_IS_KEYMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_KEYMAP)) #define GDK_KEYMAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_KEYMAP, GdkKeymapClass)) +typedef struct _GdkKeymap GdkKeymap; typedef struct _GdkKeymapClass GdkKeymapClass; struct _GdkKeymapClass @@ -77,6 +81,43 @@ struct _GdkKeymap GdkDisplay *display; }; +GType gdk_keymap_get_type (void) G_GNUC_CONST; + +GdkDisplay * gdk_keymap_get_display (GdkKeymap *keymap); + +guint gdk_keymap_lookup_key (GdkKeymap *keymap, + const GdkKeymapKey *key); +gboolean gdk_keymap_translate_keyboard_state (GdkKeymap *keymap, + guint hardware_keycode, + GdkModifierType state, + gint group, + guint *keyval, + gint *effective_group, + gint *level, + GdkModifierType *consumed_modifiers); +gboolean gdk_keymap_get_entries_for_keyval (GdkKeymap *keymap, + guint keyval, + GdkKeymapKey **keys, + gint *n_keys); +gboolean gdk_keymap_get_entries_for_keycode (GdkKeymap *keymap, + guint hardware_keycode, + GdkKeymapKey **keys, + guint **keyvals, + gint *n_entries); + +PangoDirection gdk_keymap_get_direction (GdkKeymap *keymap); +gboolean gdk_keymap_have_bidi_layouts (GdkKeymap *keymap); +gboolean gdk_keymap_get_caps_lock_state (GdkKeymap *keymap); +gboolean gdk_keymap_get_num_lock_state (GdkKeymap *keymap); +gboolean gdk_keymap_get_scroll_lock_state (GdkKeymap *keymap); +guint gdk_keymap_get_modifier_state (GdkKeymap *keymap); +void gdk_keymap_add_virtual_modifiers (GdkKeymap *keymap, + GdkModifierType *state); +gboolean gdk_keymap_map_virtual_modifiers (GdkKeymap *keymap, + GdkModifierType *state); +GdkModifierType gdk_keymap_get_modifier_mask (GdkKeymap *keymap, + GdkModifierIntent intent); + G_END_DECLS #endif |