Main Page   Modules   Data Structures   Globals   Appendix  

MInputContext Struct Reference

Structure of input context. More...

#include <m17n.h>


Data Fields

MInputMethodim
MTextproduced
void * arg
int active
struct {
   int   x
   int   y
   int   ascent
   int   descent
   int   fontsize
   MText *   mt
   int   pos
spot
void * info
MTextstatus
int status_changed
MTextpreedit
int preedit_changed
int cursor_pos
int cursor_pos_changed
MPlistcandidate_list
int candidate_index
int candidate_from
int candidate_to
int candidate_show
int candidates_changed
MPlistplist


Detailed Description

The type MInputContext is the structure of input context objects.


Field Documentation

MInputMethod* MInputContext::im
 

Backward pointer to the input method. It is set up be the function minput_create_ic().

MText* MInputContext::produced
 

M-text produced by the input method. It is set up by the function minput_lookup() .

void* MInputContext::arg
 

Argument given to the function minput_create_im().

int MInputContext::active
 

Flag telling whether the input context is currently active or inactive. The value is set to 1 (active) when the input context is created. It can be toggled by the function minput_toggle ().

int MInputContext::x
 

X and Y coordinate of the spot.

int MInputContext::y
 

X and Y coordinate of the spot.

int MInputContext::ascent
 

Ascent and descent pixels of the line of the spot.

int MInputContext::descent
 

Ascent and descent pixels of the line of the spot.

int MInputContext::fontsize
 

Font size for preedit text in 1/10 point.

MText* MInputContext::mt
 

M-text at the spot, or NULL.

int MInputContext::pos
 

Character position in at the spot.

struct { ... } MInputContext::spot
 

Spot location and size of the input context.

void* MInputContext::info
 

The usage of the following members depends on the input driver. The descriptions below are for the input driver of an internal input method. They are set by the function ->driver.filter(). Pointer to extra information that ->driver.create_ic() setups. It is used to record the internal state of the input context.

MText* MInputContext::status
 

M-text describing the current status of the input context.

int MInputContext::status_changed
 

The function ->driver.filter() sets the value to 1 when it changes .

MText* MInputContext::preedit
 

M-text containing the current preedit text. The function ->driver.filter() sets the value.

int MInputContext::preedit_changed
 

The function ->driver.filter() sets the value to 1 when it changes .

int MInputContext::cursor_pos
 

Cursor position of .

int MInputContext::cursor_pos_changed
 

MPlist* MInputContext::candidate_list
 

Array of the current candidate texts.

int MInputContext::candidate_index
 

int MInputContext::candidate_from
 

int MInputContext::candidate_to
 

int MInputContext::candidate_show
 

int MInputContext::candidates_changed
 

The function ->driver.filter() sets the value to 1 when it changes one of the above members.

MPlist* MInputContext::plist
 


Top of this page

Main Page   Modules   Data Structures   Globals   Appendix  

mulemark mule-aist@m17n.org