Back to index

im-sdk  12.3.91
Functions
iiimpUtil.h File Reference
#include "iiimpIM.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void setICAttribute (char *value, XICAttribute *ic_attr, int icid)
void RegisterTriggerKeys (XimCommon im)
Bool isConversionOnKey (XimCommon im, XEvent *ev)
Bool isConversionOffKey (XimCommon im, XEvent *ev)

Function Documentation

Bool isConversionOffKey ( XimCommon  im,
XEvent *  ev 
)

Definition at line 292 of file iiimpUtil.c.

{
    if (!XIM_IS_IIIMP(im)) return False;
    return isMatchKey(ev, XIM_IIIMP(im, pkev_off), XIM_IIIMP(im, off_keys_num));
}

Here is the call graph for this function:

Here is the caller graph for this function:

Bool isConversionOnKey ( XimCommon  im,
XEvent *  ev 
)

Definition at line 282 of file iiimpUtil.c.

{
    if (!XIM_IS_IIIMP(im)) return False;
    return isMatchKey(ev, XIM_IIIMP(im, pkev_on), XIM_IIIMP(im, on_keys_num));
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 213 of file iiimpUtil.c.

{
    int on_num, off_num;
    const IIIMCF_keyevent *pkev_on, *pkev_off;

    if (!XIM_IS_IIIMP(im)) return;

    if (XIM_IIIMP(im, pkev_on)) {
       Xfree(XIM_IIIMP(im, pkev_on));
       XIM_IIIMP(im, on_keys_num) = 0;
    }
    if (XIM_IIIMP(im, pkev_off)) {
       Xfree(XIM_IIIMP(im, pkev_off));
       XIM_IIIMP(im, off_keys_num) = 0;
    }

    if (iiimcf_get_trigger_keys(XIM_IIIMP(im, handle),
                            &on_num, &pkev_on,
                            &off_num, &pkev_off)
       == IIIMF_STATUS_SUCCESS) {
       IIIMCF_keyevent *pkev;

       pkev = (IIIMCF_keyevent*) Xmalloc(sizeof(*pkev) * on_num);
       if (pkev) {
           memcpy(pkev, pkev_on, sizeof(*pkev) * on_num);
           XIM_IIIMP(im, on_keys_num) = on_num;
           XIM_IIIMP(im, pkev_on) = pkev;
       }
       pkev = (IIIMCF_keyevent*) Xmalloc(sizeof(*pkev) * off_num);
       if (pkev) {
           memcpy(pkev, pkev_off, sizeof(*pkev) * off_num);
           XIM_IIIMP(im, off_keys_num) = off_num;
           XIM_IIIMP(im, pkev_off) = pkev;
       }
    }

    register_conversion_keys_from_resource(im);

    return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void setICAttribute ( char *  value,
XICAttribute ic_attr,
int  icid 
)