src/core.h File Reference

#include <config.h>
#include <iml/SunIM.h>
#include <unihan_im.h>
#include "unihan_property.h"

Go to the source code of this file.

Data Structures

struct  _IMConfigList
struct  DataPerDesktop
struct  UserDataTable
struct  _UnihanRegisteredIMArg
struct  DataPerSession

Defines

#define is_status_started(flags)   (flags & STATUS_STARTED)
#define is_preedit_started(flags)   (flags & PREEDIT_STARTED)
#define is_lookup_started(flags)   (flags & LOOKUP_STARTED)

Typedefs

typedef _IMConfigList IMConfigList
typedef _UnihanRegisteredIMArg UnihanRegisteredIMArg
typedef _UnihanRegisteredIMArgUnihanRegisteredIMList

Enumerations

enum  UnihanStartedFlags { STATUS_STARTED = 1 << 0, PREEDIT_STARTED = 1 << 1, LOOKUP_STARTED = 1 << 2 }
enum  UnihanPhraseState { PHRASE_STATE_NEVER = 0, PHRASE_STATE_IDLE = 1, PHRASE_STATE_SELECTING = 2 }

Functions

void conversion_on (iml_session_t *s)
 Starts conversion (input processing).
void conversion_off (iml_session_t *s)
 Ends conversion (input processing).
void conversion_temp_on (iml_session_t *s)
 Temporarily resumes conversion (input processing).
void conversion_temp_off (iml_session_t *s)
 Temporarily suspends conversion (input processing).
void im_manager_init (iml_desktop_t *d)
 Initialises IM Manager.
void im_manager_done (iml_desktop_t *d)
 Finalises IM Manager.
int im_manager_get_num_im (iml_desktop_t *d)
 Get number of IMs.
void im_manager_create_session (iml_session_t *s)
 Creates IM Manager session context.
void im_manager_destroy_session (iml_session_t *s)
 Destroys IM Manager session context.
void im_manager_get_im_list (iml_session_t *s, IMAuxDrawCallbackStruct *aux)
 Returns the list of IMs to Aux.
void im_manager_set_default_im (iml_session_t *s, char *imid)
 Sets the default IM for this session.
const char * im_get_curr_im_name (iml_session_t *s)
 Get name of current IM.
int im_propagate_focus_event (iml_session_t *s, int focused)
 Propagates focus event to IM.
int im_propagate_key_event (iml_session_t *s, IMKeyListEvent *ev)
 Propagates key event event to IM.
int im_propagate_lookup_page_turn_event (iml_session_t *s, int direction)
 Propagates lookup page turn event to IM.
int im_propagate_lookup_select_event (iml_session_t *s, int num)
 Propagates lookup selection event to IM.
void im_change_to_next_im (iml_session_t *s)
 Changes current IM to the next IM in list.
void im_change_to_next_im1 (iml_session_t *s)
 Changes current IM to the next IM in list.
void im_change_to_prev_im (iml_session_t *s)
 Changes current IM to the previous IM in list.
void im_change_to_prev_im1 (iml_session_t *s)
 Changes current IM to the previous IM in list.
void im_change_to_im (iml_session_t *s, char *imid)
 Changes current IM by ID.
void check_fullwidth (iml_session_t *s)
 Updates Aux of current halfwidth/fullwidth mode.
void check_puncce (iml_session_t *s)
 Updates Aux of current Chinese/English punctuation mode.
void toggle_width (iml_session_t *s)
 Toggles halfwidth/fullwidth mode.
void toggle_puncce (iml_session_t *s)
 Toggles Chinese/English punctuation mode.
void check_module_info (iml_session_t *s)
void tcsc_set (iml_session_t *s, UnihanTCSCMode tcsc)
 Sets Traditional/Simplified Chinese conversion mode for current session.
void toggle_punctuation_keyboard (iml_session_t *s)
void toggle_us_keyboard (iml_session_t *s)
void im_config_change (iml_session_t *s, char *imid, char *key, char *val)
IMConfigListim_config_get (iml_session_t *s, char *imid)
void im_set_symbol_user_table (iml_session_t *s, int numSut, SymbolUserTable *sut)
void im_set_word_user_table (iml_session_t *s, int numWut, WordUserTable *wut)
void im_config_unispim (iml_session_t *s, int count_values, int unispim_values[])

Variables

UTFCHAR lename_string []
UTFCHAR aux_name []


Define Documentation

#define is_lookup_started ( flags   )     (flags & LOOKUP_STARTED)

#define is_preedit_started ( flags   )     (flags & PREEDIT_STARTED)

#define is_status_started ( flags   )     (flags & STATUS_STARTED)


Typedef Documentation

typedef struct _IMConfigList IMConfigList

typedef struct _UnihanRegisteredIMArg UnihanRegisteredIMArg

typedef struct _UnihanRegisteredIMArg * UnihanRegisteredIMList


Enumeration Type Documentation

enum UnihanPhraseState

Enumerator:
PHRASE_STATE_NEVER 
PHRASE_STATE_IDLE 
PHRASE_STATE_SELECTING 

enum UnihanStartedFlags

Enumerator:
STATUS_STARTED 
PREEDIT_STARTED 
LOOKUP_STARTED 


Function Documentation

void check_fullwidth ( iml_session_t *  s  ) 

Updates Aux of current halfwidth/fullwidth mode.

Parameters:
s current IMLSession

void check_module_info ( iml_session_t *  s  ) 

void check_puncce ( iml_session_t *  s  ) 

Updates Aux of current Chinese/English punctuation mode.

Parameters:
s current IMLSession

void conversion_off ( iml_session_t *  s  ) 

Ends conversion (input processing).

Asks IIIMF to stop sending input events to us, notifies the current input method, and updates the GUI as necessary.

Parameters:
s current IMLSession
See also:
conversion_on()

void conversion_on ( iml_session_t *  s  ) 

Starts conversion (input processing).

Asks IIIMF to begin sending input events to us, notifies the current input method, and updates the GUI as necessary.

Parameters:
s current IMLSession
See also:
conversion_off()

void conversion_temp_off ( iml_session_t *  s  ) 

Temporarily suspends conversion (input processing).

Temporarily switches off input method, but does not ask IIIMF to stop sending input events to us. The GUI is updated to indicate input method is switched off. For example, this is used by the single Shift-key input toggle.

Parameters:
s current IMLSession
See also:
conversion_temp_on()

conversion_on()

conversion_off()

void conversion_temp_on ( iml_session_t *  s  ) 

Temporarily resumes conversion (input processing).

Temporarily switches on input method. Assumes IIIMF is already sending input events to us; no checking is done. The GUI is updated to indicate input method is switched on. For example, this is used by the single Shift-key input toggle.

Parameters:
s current IMLSession
See also:
conversion_temp_off()

conversion_on()

conversion_off()

void im_config_change ( iml_session_t *  s,
char *  imid,
char *  key,
char *  val 
)

IMConfigList* im_config_get ( iml_session_t *  s,
char *  imid 
)

void im_config_unispim ( iml_session_t *  s,
int  count_values,
int  unispim_values[] 
)

void im_set_symbol_user_table ( iml_session_t *  s,
int  numSut,
SymbolUserTable sut 
)

void im_set_word_user_table ( iml_session_t *  s,
int  numWut,
WordUserTable wut 
)

void tcsc_set ( iml_session_t *  s,
UnihanTCSCMode  tcsc 
)

Sets Traditional/Simplified Chinese conversion mode for current session.

Parameters:
s current IMLSession
tcsc the TC/SC conversion mode

void toggle_puncce ( iml_session_t *  s  ) 

Toggles Chinese/English punctuation mode.

Parameters:
s current IMLSession

void toggle_punctuation_keyboard ( iml_session_t *  s  ) 

void toggle_us_keyboard ( iml_session_t *  s  ) 

void toggle_width ( iml_session_t *  s  ) 

Toggles halfwidth/fullwidth mode.

Parameters:
s current IMLSession


Variable Documentation

UTFCHAR aux_name[]

UTFCHAR lename_string[]


Generated on Fri Sep 7 15:51:41 2007 for unihan-core-le by  doxygen 1.5.2