Back to index

im-sdk  12.3.91
Public Member Functions | Private Types | Private Attributes
IIIMPInputContext Class Reference

#include <IIIMPInputContext.hh>

Inheritance diagram for IIIMPInputContext:
Inheritance graph
[legend]
Collaboration diagram for IIIMPInputContext:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 IIIMPInputContext (IIIMPClient *cl)
 ~IIIMPInputContext ()
const CompoundStringgetUser () const
const CompoundStringgetLocaleName () const
const CompoundStringgetEngineName () const
const CompoundStringgetApplicationName () const
const CompoundStringgetOSName () const
const CompoundStringgetOSArch () const
const CompoundStringgetOSVersion () const
const CompoundStringgetXDisplayString () const
const CompoundStringgetXServerVendor () const
void setLocaleName (char *)
void setEngineName (char *)
int commit_string (IMText *text)
int forward_event (IMKeyEventStruct *event)
int preedit_start (IMPreeditStruct *preedit)
int preedit_draw (IMPreeditStruct *preedit)
int preedit_caret (IMPreeditStruct *preedit)
int preedit_done (IMPreeditStruct *preedit)
int status_start (IMStatusStruct *status)
int status_draw (IMStatusStruct *status)
int status_done (IMStatusStruct *status)
int lookup_start (IMLookupStruct *lookup)
int lookup_draw (IMLookupStruct *lookup)
int lookup_process (IMLookupStruct *lookup)
int lookup_done (IMLookupStruct *lookup)
int auxiliary_start (IMAuxStruct *auxiliary)
int auxiliary_draw (IMAuxStruct *auxiliary)
int auxiliary_done (IMAuxStruct *auxiliary)
int conversion_start ()
int conversion_end ()
void realize ()
void unrealize ()
int is_active ()
void set_icvalues (IMArg *args, int n)
void get_icvalues (IMArg *args, int n) const

Private Types

enum  IC_STATE { is_being_created = 0, is_realized = 1, is_destroyed = 2 }

Private Attributes

IC_STATE ic_state
IIIMPClientclient
CompoundString localename
CompoundString enginename

Detailed Description

Definition at line 49 of file IIIMPInputContext.hh.


Member Enumeration Documentation

Enumerator:
is_being_created 
is_realized 
is_destroyed 

Definition at line 94 of file IIIMPInputContext.hh.


Constructor & Destructor Documentation

Definition at line 46 of file IIIMPInputContext.cpp.

Definition at line 51 of file IIIMPInputContext.cpp.

                                      {
}

Member Function Documentation

int IIIMPInputContext::auxiliary_done ( IMAuxStruct auxiliary) [virtual]

Implements InputContext.

Definition at line 237 of file IIIMPInputContext.cpp.

                                                        {
  IMAuxCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.aux = auxiliary;
  if (!is_active()) return 1;
  return client->auxiliary_done(&call_data);
}

Here is the call graph for this function:

int IIIMPInputContext::auxiliary_draw ( IMAuxStruct auxiliary) [virtual]

Implements InputContext.

Definition at line 229 of file IIIMPInputContext.cpp.

                                                        {
  IMAuxCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.aux = auxiliary;
  if (!is_active()) return 1;
  return client->auxiliary_draw(&call_data);
}

Here is the call graph for this function:

int IIIMPInputContext::auxiliary_start ( IMAuxStruct auxiliary) [virtual]

Implements InputContext.

Definition at line 221 of file IIIMPInputContext.cpp.

                                                         {
  IMAuxCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.aux = auxiliary;
  if (!is_active()) return 1;
  return client->auxiliary_start(&call_data);
}

Here is the call graph for this function:

int IIIMPInputContext::commit_string ( IMText text) [virtual]

Implements InputContext.

Definition at line 114 of file IIIMPInputContext.cpp.

                                             {
  IMCommitCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.text = text;
  if (!is_active()) return 1;
  return client->commit_string(&call_data);
}

Here is the call graph for this function:

Implements InputContext.

Definition at line 254 of file IIIMPInputContext.cpp.

                                  {
  IMConvStateCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.conv_state = 1;
  if (!is_active()) return 1;
  return client->conversion_end(&call_data);
}

Here is the call graph for this function:

Implements InputContext.

Definition at line 246 of file IIIMPInputContext.cpp.

                                    {
  IMConvStateCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.conv_state = 0;
  if (!is_active()) return 1;
  return client->conversion_start(&call_data);
}

Here is the call graph for this function:

Implements InputContext.

Definition at line 123 of file IIIMPInputContext.cpp.

                                                        {
  IMForwardEventCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.event = event;
  if (!is_active()) return 1;
  return client->forward_event(&call_data);
}

Here is the call graph for this function:

void InputContext::get_icvalues ( IMArg args,
int  n 
) const [inherited]

Definition at line 53 of file InputContext.cpp.

                                                   {
  for (int i = 0; i < n; i++) {
    args[i].value = &(arg_list.getItemByKey(args[i].id));
  }
}

Here is the call graph for this function:

Implements InputContext.

Definition at line 68 of file IIIMPInputContext.cpp.

                                            {
  return client->getApplicationName();
}

Here is the call graph for this function:

const CompoundString & IIIMPInputContext::getEngineName ( ) const [virtual]

Implements InputContext.

Definition at line 101 of file IIIMPInputContext.cpp.

{return enginename;}
const CompoundString & IIIMPInputContext::getLocaleName ( ) const [virtual]

Implements InputContext.

Definition at line 98 of file IIIMPInputContext.cpp.

{return localename;}
const CompoundString & IIIMPInputContext::getOSArch ( ) const [virtual]

Implements InputContext.

Definition at line 78 of file IIIMPInputContext.cpp.

                                   {
  return client->getOSArch();
}

Here is the call graph for this function:

const CompoundString & IIIMPInputContext::getOSName ( ) const [virtual]

Implements InputContext.

Definition at line 73 of file IIIMPInputContext.cpp.

                                   {
  return client->getOSName();
}

Here is the call graph for this function:

const CompoundString & IIIMPInputContext::getOSVersion ( ) const [virtual]

Implements InputContext.

Definition at line 83 of file IIIMPInputContext.cpp.

                                      {
  return client->getOSVersion();
}

Here is the call graph for this function:

const CompoundString & IIIMPInputContext::getUser ( ) const [virtual]

Implements InputContext.

Definition at line 65 of file IIIMPInputContext.cpp.

{return client->getUser();}

Here is the call graph for this function:

Implements InputContext.

Definition at line 88 of file IIIMPInputContext.cpp.

                                           {
  return client->getXDisplayString();
}

Here is the call graph for this function:

Implements InputContext.

Definition at line 93 of file IIIMPInputContext.cpp.

                                          {
  return client->getXServerVendor();
}

Here is the call graph for this function:

int IIIMPInputContext::is_active ( ) [inline]

Definition at line 91 of file IIIMPInputContext.hh.

{return ic_state == is_realized;}

Here is the caller graph for this function:

int IIIMPInputContext::lookup_done ( IMLookupStruct lookup) [virtual]

Implements InputContext.

Definition at line 212 of file IIIMPInputContext.cpp.

                                                     {
  IMLookupCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.lookup = lookup;
  if (!is_active()) return 1;
  return client->lookup_done(&call_data);
}

Here is the call graph for this function:

int IIIMPInputContext::lookup_draw ( IMLookupStruct lookup) [virtual]

Implements InputContext.

Definition at line 196 of file IIIMPInputContext.cpp.

                                                     {
  IMLookupCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.lookup = lookup;
  if (!is_active()) return 1;
  return client->lookup_draw(&call_data);
}

Here is the call graph for this function:

Definition at line 204 of file IIIMPInputContext.cpp.

                                                        {
  IMLookupCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.lookup = lookup;
  if (!is_active()) return 1;
  return client->lookup_process(&call_data);
}

Here is the call graph for this function:

int IIIMPInputContext::lookup_start ( IMLookupStruct lookup) [virtual]

Implements InputContext.

Definition at line 188 of file IIIMPInputContext.cpp.

                                                      {
  IMLookupCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.lookup = lookup;
  if (!is_active()) return 1;
  return client->lookup_start(&call_data);
}

Here is the call graph for this function:

int IIIMPInputContext::preedit_caret ( IMPreeditStruct preedit) [virtual]

Implements InputContext.

Definition at line 148 of file IIIMPInputContext.cpp.

                                                         {
  IMPreeditCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.preedit = preedit;
  if (!is_active()) return 1;
  return client->preedit_caret(&call_data);
}

Here is the call graph for this function:

int IIIMPInputContext::preedit_done ( IMPreeditStruct preedit) [virtual]

Implements InputContext.

Definition at line 156 of file IIIMPInputContext.cpp.

                                                        {
  IMPreeditCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.preedit = preedit;
  if (!is_active()) return 1;
  return client->preedit_done(&call_data);
}

Here is the call graph for this function:

int IIIMPInputContext::preedit_draw ( IMPreeditStruct preedit) [virtual]

Implements InputContext.

Definition at line 140 of file IIIMPInputContext.cpp.

                                                        {
  IMPreeditCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.preedit = preedit;
  if (!is_active()) return 1;
  return client->preedit_draw(&call_data);
}

Here is the call graph for this function:

int IIIMPInputContext::preedit_start ( IMPreeditStruct preedit) [virtual]

Implements InputContext.

Definition at line 132 of file IIIMPInputContext.cpp.

                                                         {
  IMPreeditCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.preedit = preedit;
  if (!is_active()) return 1;
  return client->preedit_start(&call_data);
}

Here is the call graph for this function:

Definition at line 55 of file IIIMPInputContext.cpp.

void InputContext::set_icvalues ( IMArg args,
int  n 
) [inherited]

Definition at line 46 of file InputContext.cpp.

                                             {
  for (int i = 0; i < n; i++) {
    arg_list.addItemByKey(args[i].value, args[i].id);
  }
}

Here is the call graph for this function:

void IIIMPInputContext::setEngineName ( char *  name)

Definition at line 109 of file IIIMPInputContext.cpp.

                                           {
  enginename = name;
}

Here is the caller graph for this function:

void IIIMPInputContext::setLocaleName ( char *  name)

Definition at line 104 of file IIIMPInputContext.cpp.

                                           {
  localename = name;
}

Here is the caller graph for this function:

int IIIMPInputContext::status_done ( IMStatusStruct status) [virtual]

Implements InputContext.

Definition at line 180 of file IIIMPInputContext.cpp.

                                                     {
  IMStatusCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.status = status;
  if (!is_active()) return 1;
  return client->status_done(&call_data);
}

Here is the call graph for this function:

int IIIMPInputContext::status_draw ( IMStatusStruct status) [virtual]

Implements InputContext.

Definition at line 172 of file IIIMPInputContext.cpp.

                                                     {
  IMStatusCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.status = status;
  if (!is_active()) return 1;
  return client->status_draw(&call_data);
}

Here is the call graph for this function:

int IIIMPInputContext::status_start ( IMStatusStruct status) [virtual]

Implements InputContext.

Definition at line 164 of file IIIMPInputContext.cpp.

                                                      {
  IMStatusCBStruct call_data;
  call_data.icid = client->getICID(this);
  call_data.status = status;
  if (!is_active()) return 1;
  return client->status_start(&call_data);
}

Here is the call graph for this function:

Definition at line 60 of file IIIMPInputContext.cpp.


Member Data Documentation

Definition at line 100 of file IIIMPInputContext.hh.

Definition at line 103 of file IIIMPInputContext.hh.

Definition at line 99 of file IIIMPInputContext.hh.

Definition at line 102 of file IIIMPInputContext.hh.


The documentation for this class was generated from the following files: