Back to index

im-sdk  12.3.91
Functions | Variables
sendkey2.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <iiimcf.h>
#include <time.h>
#include "common.h"

Go to the source code of this file.

Functions

static IIIMF_status preedit_handler (IIIMCF_context c, IIIMCF_event event, IIIMCF_component current, IIIMCF_component parent)
static IIIMF_status keyevent_handler (IIIMCF_context c, IIIMCF_event event, IIIMCF_component current, IIIMCF_component parent)
static void create_context ()
static void destroy_context (IIIMCF_context c)
static void register_components ()
int main (int argc, char **argv)

Variables

IIIMCF_context context

Function Documentation

static void create_context ( ) [static]

Definition at line 43 of file sendkey2.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void destroy_context ( IIIMCF_context  c) [static]

Definition at line 49 of file sendkey2.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static IIIMF_status keyevent_handler ( IIIMCF_context  c,
IIIMCF_event  event,
IIIMCF_component  current,
IIIMCF_component  parent 
) [static]

Definition at line 22 of file sendkey2.c.

{
    IIIMCF_event_type et;
    IIIMCF_keyevent kev;

    check(iiimcf_get_event_type(event, &et));
    if (et == IIIMCF_EVENT_TYPE_KEYEVENT) {
       check(iiimcf_get_keyevent_value(event, &kev));
       fprintf(stderr, "Keyevent[%d]:(%d, %d, %d, %d)\n",
              et, kev.keycode, kev.keychar, kev.modifier, kev.time_stamp);
    }

    return IIIMF_STATUS_SUCCESS;
}

Here is the call graph for this function:

int main ( int  argc,
char **  argv 
)
static IIIMF_status preedit_handler ( IIIMCF_context  c,
IIIMCF_event  event,
IIIMCF_component  current,
IIIMCF_component  parent 
) [static]

Definition at line 10 of file sendkey2.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void register_components ( ) [static]

Definition at line 57 of file sendkey2.c.

{
    IIIMCF_component parent, comp;

    check(iiimcf_get_component(handle,
                            "org.OpenI18N.IIIMCF.UI.preedit",
                            &parent));
    check(iiimcf_register_component(handle,
                                "org.OpenI18N.IIIMCF.test.preedit",
                                preedit_handler,
                                parent,
                                &comp));
    check(iiimcf_get_component(handle,
                            "org.OpenI18N.IIIMCF.event.key",
                            &parent));
    check(iiimcf_register_component(handle,
                                "org.OpenI18N.IIIMCF.test.event.key",
                                keyevent_handler,
                                parent,
                                &comp));
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 7 of file sendkey2.c.