Back to index

im-sdk  12.3.91
Functions | Variables
composite_methods.c File Reference
#include <stdio.h>
#include <X11/Xmd.h>
#include <X11/Xlib.h>
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
#include "ime.h"
#include "xaux_common.h"
#include "xaux_ext_common.h"
#include "le_aux_protocol.h"
#include "common_aux_methods.h"
#include "gtkiiimwin.h"

Go to the source code of this file.

Functions

void composite_aux_Proc_LE_Show_Preedit_Notify (aux_ext_data_t *aux_ext_data)
void composite_aux_Proc_LE_Hide_Preedit_Notify (aux_ext_data_t *aux_ext_data)
void composite_aux_Proc_LE_Update_Preedit_Notify (aux_ext_data_t *aux_ext_data)
void composite_aux_Proc_LE_Show_Candidates_Notify (aux_ext_data_t *aux_ext_data)
void composite_aux_Proc_LE_Hide_Candidates_Notify (aux_ext_data_t *aux_ext_data)
void composite_aux_Proc_LE_Update_Candidates_Notify (aux_ext_data_t *aux_ext_data)
void composite_aux_Proc_LE_Change_Focus_Notify (aux_ext_data_t *aux_ext_data)
void composite_aux_Proc_LE_Change_Option (aux_ext_data_t *aux_ext_data)
void composite_aux_Proc_LE_Restore_Position (aux_ext_data_t *aux_ext_data)
void composite_aux_Proc_LE_Notify (aux_ext_data_t *aux_ext_data)
void composite_aux_send_option_change (TPCStyleOption *poptions)
void composite_aux_send_candidate_selection (int idx)
void composite_aux_send_candidate_page (int pgop)
void composite_aux_send_move (int cursor_x, int cursor_y, int cursor_w, int cursor_h)

Variables

Display * gDisplay
void * composite_aux

Function Documentation

void composite_aux_Proc_LE_Notify ( aux_ext_data_t aux_ext_data)

Definition at line 32 of file composite_methods.c.

{
    int nIntegerCount, notifyType;

    nIntegerCount = aux_ext_data->integer_count;
    if (nIntegerCount <= 0)
        return;

    notifyType = aux_ext_data->integer_list[0];

    switch (notifyType) {
    case COMMONAUX_SHOW_PREEDIT_NOTIFY:
        DEBUG_printf("COMMONAUX_SHOW_PREEDIT_NOTIFY Notify Received\n");
        composite_aux_Proc_LE_Show_Preedit_Notify(aux_ext_data);
        break;
    case COMMONAUX_HIDE_PREEDIT_NOTIFY:
        DEBUG_printf("COMMONAUX_HIDE_PREEDIT_NOTIFY Notify Received\n");
        composite_aux_Proc_LE_Hide_Preedit_Notify(aux_ext_data);
        break;
    case COMMONAUX_UPDATE_PREEDIT_NOTIFY:
        DEBUG_printf("COMMONAUX_UPDATE_PREEDIT_NOTIFY Notify Received\n");
        composite_aux_Proc_LE_Update_Preedit_Notify(aux_ext_data);
        break;
    case COMMONAUX_SHOW_CANDIDATES_NOTIFY:
        DEBUG_printf("COMMONAUX_SHOW_CANDIDATES_NOTIFY Notify Received\n");
        composite_aux_Proc_LE_Show_Candidates_Notify(aux_ext_data);
        break;
    case COMMONAUX_HIDE_CANDIDATES_NOTIFY:
        DEBUG_printf("COMMONAUX_HIDE_CANDIDATES_NOTIFY Notify Received\n");
        composite_aux_Proc_LE_Hide_Candidates_Notify(aux_ext_data);
        break;
    case COMMONAUX_UPDATE_CANDIDATES_NOTIFY:
        DEBUG_printf("COMMONAUX_UPDATE_CANDIDATES_NOTIFY Notify Received\n");
        composite_aux_Proc_LE_Update_Candidates_Notify(aux_ext_data);
        break;
    case COMPOSITE_PC_OPTION:
        DEBUG_printf("COMPOSITE_PC_OPTION Notify Received\n");
        composite_aux_Proc_LE_Change_Option(aux_ext_data);
        break;
    case COMPOSITE_PC_MOVE:
        DEBUG_printf("COMPOSITE_PC_MOVE Notify Received\n");
        composite_aux_Proc_LE_Restore_Position(aux_ext_data);
        break;
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 279 of file composite_methods.c.

{
    int nIntegerCount = 2;
    int pIntegerList[nIntegerCount];

    pIntegerList[0] = COMPOSITE_PC_CANDIDATE_PAGE;
    pIntegerList[1] = pgop;

    NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);
}

Here is the call graph for this function:

Definition at line 268 of file composite_methods.c.

{
    int nIntegerCount = 2;
    int pIntegerList[nIntegerCount];

    pIntegerList[0] = COMPOSITE_PC_CANDIDATE_SELECTION;
    pIntegerList[1] = idx;

    NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);
}

Here is the call graph for this function:

void composite_aux_send_move ( int  cursor_x,
int  cursor_y,
int  cursor_w,
int  cursor_h 
)

Definition at line 291 of file composite_methods.c.

{
    int nIntegerCount = 5;
    int pIntegerList[nIntegerCount];

    pIntegerList[0] = COMPOSITE_PC_MOVE;
    pIntegerList[1] = cursor_x;
    pIntegerList[2] = cursor_y;
    pIntegerList[3] = cursor_w;
    pIntegerList[4] = cursor_h;

    NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);
}

Here is the call graph for this function:

Definition at line 257 of file composite_methods.c.

{
    int nIntegerCount =  1+sizeof(TPCStyleOption)/sizeof(int);
    int pIntegerList[nIntegerCount];

    pIntegerList[0] = COMPOSITE_PC_OPTION;
    *(TPCStyleOption*)(pIntegerList+1) = *poptions;

    NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);
}

Here is the call graph for this function:


Variable Documentation

Definition at line 17 of file composite_aux.c.

Display* gDisplay

Definition at line 34 of file aux_manager_methods.c.