Back to index

im-sdk  12.3.91
le_session.h
Go to the documentation of this file.
00001 #ifndef _LE_SESSION_H_
00002 #define _LE_SESSION_H_
00003 
00004 #include "le_info.h"
00005 #include "le_desktop.h"
00006 
00007 /*
00008 typedef struct TImePCAuxOption {
00009     int    type;
00010     int    showSystemBar;
00011     int    followCursor;
00012     int    composite;
00013     int    showPageControl;
00014     int    ignorCandidateTitle;
00015 
00016     int    candidateVertical;
00017     int    candidatePosition;
00018     int    candidateTitlePosition;
00019 } TImePCAuxOption;
00020 
00021 */
00022 
00023 typedef struct _LeSessionContextRec {
00024     ImeEncoding client_encoding;
00025 
00026     ImeModuleRec *current_ime_module;
00027     int current_conversion_status;
00028     int current_qjbj_status;
00029     int current_punct_status;
00030 
00031     iml_session_t *s;
00032 
00033     void *ime_user_data;
00034     void *ime_desktop_data;
00035     void *ime_session_data;
00036 
00037     // to restore the data when focus in/out
00038     int                 preedit_show;
00039     ImePreeditRec       preedit_backup;
00040     int                 candidates_show;
00041     ImeCandidatesRec    candidates_backup;
00042 
00043     //int                 pc_aux_x;
00044     //int                 pc_aux_y;
00045     //int                 pc_cursor_x, pc_cursor_y, pc_cursor_w, pc_cursor_h;
00046     //char               *pc_aux_name;            //preedit_candidates aux name
00047     //TImePCAuxOption    *pc_aux_options;         //preedit_candidates aux options
00048 } LeSessionContextRec;
00049 
00050 #endif /* _LE_SESSION_H_ */