Back to index

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

Go to the source code of this file.

Functions

IIIMF_status iiimcf_toggle_status (IIIMCF_context_rec *pc, int flag)
IIIMF_status iiimcf_update_status (IIIMCF_context_rec *pc, IIIMP_message *pmes)
IIIMF_status iiimcf_get_status_text (IIIMCF_context context, IIIMCF_text *ptext)

Function Documentation

Definition at line 56 of file status.c.

Here is the caller graph for this function:

Definition at line 28 of file status.c.

{
    IIIMF_status st;
    IIIMP_contents *pcon = pmes->v.status_draw.status;
    ASSERT(pmes->opcode == IM_STATUS_DRAW);

    st = iiimcf_convert_iiimp_contents_to_text(pcon, &pc->status_text);
    if (st != IIIMF_STATUS_SUCCESS) return st;

    /* 
       Strictly speaking, we should not enable status here.
       However, ATOK/X never send IM_STATUS_START, we cannot
       help enabling status text by IM_STATUS_DRAW as well...
     */
    if (!IIIMCF_IS_ENABLED(pc, IIIMCF_CONTEXT_STATUS_ENABLED)) {
       st = iiimcf_toggle_status(pc, 1);
       if (st != IIIMF_STATUS_SUCCESS) return st;
    }

    IIIMCF_SET_STATE_CHANGE(pc, IIIMCF_STATE_STATUS_CHANGED);

    return iiimcf_store_simple_event(pc, IIIMCF_EVENT_TYPE_UI_STATUS_CHANGE);
}

Here is the call graph for this function:

Here is the caller graph for this function: