Back to index

im-sdk  12.3.91
ime_module.h
Go to the documentation of this file.
00001 #ifndef _IME_MODULE_H_
00002 #define _IME_MODULE_H_
00003 
00004 #include "ime.h"
00005 
00006 enum {
00007     IME_NOT_INITIALIZED = 0,
00008     IME_INITIALIZED_SUCCESS,
00009     IME_INITIALIZED_FAIL,
00010 };
00011 
00012 typedef struct TImePCAuxOption {
00013     int    type;
00014     int    showSystemBar;
00015     int    followCursor;
00016     int    composite;
00017     int    showPageControl;
00018     int    ignorCandidateTitle;
00019 
00020     int    candidateVertical;
00021     int    candidatePosition;
00022     int    candidateTitlePosition;
00023 } TImePCAuxOption;
00024 
00025 typedef struct _ImeModuleRec {
00026     int initialized;
00027     char *object_file_path;
00028     char *args;
00029     void *module_handler;
00030 
00031     ImeInfoRec *info;
00032     ImeMethodsRec *methods;
00033 
00034     /* FIXME, this should on (ime, desktop) co-context */
00035     int                 pc_cursor_x, pc_cursor_y, pc_cursor_w, pc_cursor_h;
00036     /* FIXME, these should on (ime, user) co-context */
00037     char                pc_aux_name[256];       //preedit_candidates aux name
00038     TImePCAuxOption     pc_aux_options;         //preedit_candidates aux options
00039 } ImeModuleRec;
00040 
00041 typedef struct _ImeModuleContextRec {
00042     ImeModuleRec *ime_module;
00043 
00044     int enabled;
00045 
00046     int user_data_len;
00047     void *user_data_ptr;
00048 
00049     ImePropertyListRec *pl;
00050 
00051 } ImeModuleContextRec;
00052 
00053 #endif /* _IME_MODULE_H_ */