Back to index

im-sdk  12.3.91
preedit.c File Reference
#include <stdlib.h>
#include "iiimcfint.h"

Go to the source code of this file.


IIIMF_status iiimcf_toggle_preedit (IIIMCF_context_rec *pc, int flag)
IIIMF_status iiimcf_update_preedit (IIIMCF_context_rec *pc, IIIMP_message *pmes)
IIIMF_status iiimcf_get_preedit_text (IIIMCF_context context, IIIMCF_text *ptext, int *pcaret_position)

Function Documentation

IIIMF_status iiimcf_get_preedit_text ( IIIMCF_context  context,
IIIMCF_text ptext,
int *  pcaret_position 

Definition at line 58 of file preedit.c.

Here is the caller graph for this function:

Definition at line 28 of file preedit.c.

    IIIMF_status st;
    ASSERT(pmes->opcode == IM_PREEDIT_DRAW);

    st = iiimcf_update_text_by_preedit_draw(&pc->preedit_text, pmes);
    if (st != IIIMF_STATUS_SUCCESS) return st;

       Strictly speaking, we should not enable status here.
       However, Solaris Chinese LEs never send IM_PREEDIT_START,
       we cannot help enabling preedit by IM_PREEDIT_DRAW as well...
       See iiimcf_update_status() also.
       st = iiimcf_toggle_preedit(pc, 1);
       if (st != IIIMF_STATUS_SUCCESS) return st;

    pc->preedit_caret_position = pmes->v.preedit_draw.caret;


    return iiimcf_store_simple_event(pc, IIIMCF_EVENT_TYPE_UI_PREEDIT_CHANGE);

Here is the call graph for this function:

Here is the caller graph for this function: