-
Notifications
You must be signed in to change notification settings - Fork 7
/
hanjpkeyboard.h
30 lines (19 loc) · 803 Bytes
/
hanjpkeyboard.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef __HANJP_KEYBOARD_H__
#define __HANJP_KEYBOARD_H__
#include <glib-object.h>
G_BEGIN_DECLS
#define HANJP_TYPE_KEYBOARD hanjp_keyboard_get_type()
G_DECLARE_INTERFACE(HanjpKeyboard, hanjp_keyboard, HANJP, KEYBOARD, GObject)
struct _HanjpKeyboardInterface {
GTypeInterface parent_iface;
gunichar (*get_mapping) (HanjpKeyboard *self, gint tableid, gint ascii);
};
gunichar hanjp_keyboard_get_mapping(HanjpKeyboard *self, gint tableid, gint ascii);
#define HANJP_TYPE_KEYBOARDDEFAULT hanjp_keyboarddefault_get_type()
G_DECLARE_DERIVABLE_TYPE(HanjpKeyboardDefault, hanjp_keyboarddefault, HANJP, KEYBOARDDEFAULT, GObject)
struct _HanjpKeyboardDefaultClass {
GObjectClass parent_class;
};
HanjpKeyboardDefault *hanjp_keyboarddefault_new();
G_END_DECLS
#endif // __HANJP_KEYBOARD_H__