1
/* Copyright (C) 2011 Edward Der-Hua Liu, Hsin-Chu, Taiwan
3
* This library is free software; you can redistribute it and/or
4
* modify it under the terms of the GNU Lesser General Public
5
* License as published by the Free Software Foundation; either
6
* version 2.1 of the License, or (at your option) any later version.
8
* This library is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public
14
* License along with this library; if not, write to the Free Software
15
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
#include "im-client/hime-im-client-attr.h"
24
#include "hime-module.h"
27
void init_tsin_selection_win(),disp_selections(int x, int y),hide_selections_win();
28
void disp_arrow_up(),disp_arrow_down(), set_tsin_pho_mode();
29
void set_sele_text(int tN, int i, char *text, int len);
30
void tsin_set_eng_ch(int nmod);
31
int get_widget_xy(GtkWidget *win, GtkWidget *widget, int *rx, int *ry);
32
void get_win_size(GtkWidget *win, int *width, int *height);
33
void exec_hime_setup();
34
void load_tab_pho_file();
36
void send_utf8_ch(char *s);
37
extern gboolean force_show;
39
void init_HIME_module_main_functions(HIME_module_main_functions *func)
41
func->mf_show_win_sym = show_win_sym;
42
func->mf_hide_win_sym = hide_win_sym;
43
func->mf_move_win_sym = move_win_sym;
44
func->mf_toggle_win_sym = toggle_win_sym;
46
func->mf_init_tsin_selection_win = init_tsin_selection_win;
47
func->mf_clear_sele = clear_sele;
48
func->mf_disp_selections = disp_selections;
49
func->mf_hide_selections_win = hide_selections_win;
50
func->mf_disp_arrow_up = disp_arrow_up;
51
func->mf_disp_arrow_down = disp_arrow_down;
52
func->mf_set_sele_text = set_sele_text;
53
func->mf_set_win1_cb = set_win1_cb;
55
func->mf_tsin_set_eng_ch = tsin_set_eng_ch;
56
func->mf_tsin_pho_mode = tsin_pho_mode;
57
func->mf_set_tsin_pho_mode = set_tsin_pho_mode;
59
func->mf_get_widget_xy = get_widget_xy;
60
func->mf_get_win_size = get_win_size;
61
func->mf_change_win_bg = change_win_bg;
62
func->mf_set_label_font_size = set_label_font_size;
63
func->mf_set_no_focus = set_no_focus;
66
func->mf_current_time = current_time;
68
func->mf_exec_hime_setup = exec_hime_setup;
69
func->mf_hime_edit_display_ap_only = hime_edit_display_ap_only;
70
func->mf_inmd_switch_popup_handler = inmd_switch_popup_handler;
71
func->mf_load_tab_pho_file = load_tab_pho_file;
72
func->mf_send_text = send_text;
73
func->mf_send_utf8_ch = send_utf8_ch;
74
func->mf_utf8_str_N = utf8_str_N;
76
func->mf_phkbm = &phkbm;
78
func->mf_tsin_chinese_english_toggle_key = &tsin_chinese_english_toggle_key;
80
func->mf_hime_pop_up_win = &hime_pop_up_win;
81
func->mf_hime_font_size = &hime_font_size;
82
func->mf_hime_win_color_fg = &hime_win_color_fg;
84
func->mf_hime_win_color_use = &hime_win_color_use;
85
func->mf_tsin_cursor_color = &tsin_cursor_color;
86
func->mf_pho_selkey = &pho_selkey;
87
func->mf_force_show = &force_show;
88
func->mf_win_x = &win_x;
89
func->mf_win_y = &win_y;
90
func->mf_win_xl = &win_xl;
91
func->mf_win_yl = &win_yl;
92
func->mf_dpy_xl = &dpy_xl;
93
func->mf_dpy_yl = &dpy_yl;
94
func->mf_pho_chars = pho_chars;