forked from hime-ime/hime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gst.h
63 lines (58 loc) · 1.83 KB
/
gst.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* Copyright (C) 2011 Edward Der-Hua Liu, Hsin-Chu, Taiwan
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
typedef struct {
struct CHPHO *chpho;
int c_idx, c_len;
int ph_sta; // phrase start
int sel_pho;
// int save_frm, save_to;
int current_page;
int startf;
gboolean full_match;
gboolean tsin_half_full;
gboolean tsin_buffer_editing;
gboolean ctrl_pre_sel;
struct PRE_SEL *pre_sel;
int pre_selN;
int last_cursor_idx;
int pho_menu_idx;
// int pho_sel_menu_idx;
} TSIN_ST;
extern TSIN_ST tss;
typedef enum {
SAME_PHO_QUERY_none = 0,
SAME_PHO_QUERY_gtab_input = 1,
SAME_PHO_QUERY_pho_select = 2,
} SAME_PHO_QUERY;
typedef struct {
int ityp3_pho;
int cpg, maxi;
int start_idx, stop_idx;
char typ_pho[4];
char inph[8];
SAME_PHO_QUERY same_pho_query_state;
} PHO_ST;
extern PHO_ST poo;
#define MAX_TAB_KEY_NUM64_6 (10)
typedef struct {
int S1, E1, last_idx, wild_page, pg_idx, total_matchN, sel1st_i;
u_int64_t kval;
gboolean last_full, wild_mode, spc_pressed, invalid_spc, more_pg, gtab_buf_select;
short defselN, exa_match, ci, gbufN, gbuf_cursor;
KeySym inch[MAX_TAB_KEY_NUM64_6];
} GTAB_ST;
extern GTAB_ST ggg;