IM Manager


Functions

void im_manager_init (iml_desktop_t *desktop)
 Initialises IM Manager.
void im_manager_done (iml_desktop_t *desktop)
 Finalises IM Manager.
int im_manager_get_num_im (iml_desktop_t *desktop)
 Get number of IMs.
void im_manager_get_im_list (iml_session_t *s, IMAuxDrawCallbackStruct *aux)
 Returns the list of IMs to Aux.
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_set_default_im (iml_session_t *s, char *imid)
 Sets the default IM for this session.

Detailed Description

The IM Manager handles the details of loading/unloading IMs inside IM modules.

Function Documentation

void im_manager_create_session ( iml_session_t *  s  ) 

Creates IM Manager session context.

The IM Manager keeps some of its own data about each IMLSession. Therefore, whenever an IMLSession is created this function must be called.

Parameters:
s current IMLSession
See also:
im_manager_destroy_session()

void im_manager_destroy_session ( iml_session_t *  s  ) 

Destroys IM Manager session context.

The IM Manager keeps some of its own data about each IMLSession. Therefore, whenever an IMLSession is about to be destroyed this function must be called.

Parameters:
s current IMLSession
See also:
im_manager_create_session()

void im_manager_done ( iml_desktop_t *  desktop  ) 

Finalises IM Manager.

If there are still IMs loaded, each IM is finalises by calling its done() method. Similarly for IM modules.

Parameters:
desktop current IMLDesktop
See also:
im_manager_init()

void im_manager_get_im_list ( iml_session_t *  s,
IMAuxDrawCallbackStruct *  aux 
)

Returns the list of IMs to Aux.

Parameters:
s current IMLSession
aux incoming Aux event data (unused)

int im_manager_get_num_im ( iml_desktop_t *  desktop  ) 

Get number of IMs.

Parameters:
desktop current IMLDesktop
Returns:
the total number of IMs known to the IM Manager

void im_manager_init ( iml_desktop_t *  desktop  ) 

Initialises IM Manager.

During initialisation, the IM Manager searches for IM modules and queries each module what input methods they implement.

Parameters:
desktop current IMLDesktop
See also:
im_manager_done()

void im_manager_set_default_im ( iml_session_t *  s,
char *  imid 
)

Sets the default IM for this session.

The default IM is the IM selected when user presses Ctrl-Space.

Parameters:
s current IMLSession
imid IM ID string


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