-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgcin-module-cb.h
35 lines (34 loc) · 1.21 KB
/
gcin-module-cb.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
31
32
33
34
35
#ifdef __cplusplus
extern "C" {
#endif
int module_init_win(GCIN_module_main_functions *funcs);
void module_win_geom();
int module_reset();
int module_get_preedit(char *str, GCIN_PREEDIT_ATTR attr[], int *pcursor, int *compose_flag);
gboolean module_feedkey(int kv, int kvstate);
int module_feedkey_release(KeySym xkey, int kbstate);
void module_move_win(int x, int y);
void module_change_font_size();
void module_show_win();
void module_hide_win();
int module_win_visible();
int module_flush_input();
#ifdef __cplusplus
}
#endif
///////// for gcin main() only
typedef struct _GCIN_module_callback_functions {
int (*module_init_win)(GCIN_module_main_functions *funcs);
void (*module_get_win_geom)();
int (*module_reset)();
int (*module_get_preedit)(char *str, GCIN_PREEDIT_ATTR attr[], int *pcursor, int *compose_flag);
gboolean (*module_feedkey)(int kv, int kvstate);
int (*module_feedkey_release)(KeySym xkey, int kbstate);
void (*module_move_win)(int x, int y);
void (*module_change_font_size)();
void (*module_show_win)();
void (*module_hide_win)();
int (*module_win_visible)();
int (*module_flush_input)();
void (*module_setup_window_create)();
} GCIN_module_callback_functions;