Back to index

im-sdk  12.3.91
Typedefs | Functions
engine-property.h File Reference
#include <koinput.h>
#include <le-options.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct _KOLE_property

Functions

KOLE_property * leproperty_init ()
int leproperty_get_input_mode (KOLE_property *pp)
void leproperty_set_input_mode (KOLE_property *pp, INPUT_MODE_T imode)
int leproperty_get_keyboard (KOLE_property *pp)
void leproperty_set_keyboard (KOLE_property *pp, KEYBOARD_LAYOUT_T k)
int leproperty_get_charset (KOLE_property *pp)
void leproperty_set_charset (KOLE_property *pp, OPTION_CHARSET c)
int leproperty_get_deletion (KOLE_property *pp)
void leproperty_set_deletion (KOLE_property *pp, OPTION_DELETION d)
int leproperty_get_commit (KOLE_property *pp)
void leproperty_set_commit (KOLE_property *pp, OPTION_COMMIT_MODE c)
void leproperty_done (KOLE_property *p)

Typedef Documentation

typedef struct _KOLE_property

Definition at line 7 of file engine-property.h.


Function Documentation

void leproperty_done ( KOLE_property *  p)

Definition at line 105 of file engine-property.c.

{
  if (pp && g_leproperty_initialized){
    free (pp);
    pp = NULL;
  }
}

Here is the caller graph for this function:

int leproperty_get_charset ( KOLE_property *  pp)

Definition at line 69 of file engine-property.c.

{
  return (int) pp->charset;
}

Here is the caller graph for this function:

int leproperty_get_commit ( KOLE_property *  pp)

Definition at line 93 of file engine-property.c.

{
  return (int) pp->commit;
}
int leproperty_get_deletion ( KOLE_property *  pp)

Definition at line 81 of file engine-property.c.

{
  return (int) pp->deletion;
}
int leproperty_get_input_mode ( KOLE_property *  pp)

Definition at line 43 of file engine-property.c.

{
  return (int) pp->input_mode;
}
int leproperty_get_keyboard ( KOLE_property *  pp)

Definition at line 57 of file engine-property.c.

{
  return (int) pp->keyboard;
}
KOLE_property* leproperty_init ( )

Definition at line 18 of file engine-property.c.

{
  if (g_leproperty_initialized)
    return pleproperty;
  
  pleproperty =
    (KOLE_property *) malloc (sizeof (KOLE_property));

  assert (pleproperty != NULL);
  
  if (!pleproperty)
    return NULL;
  
  pleproperty->input_mode = INPUT_MODE_ENGLISH;
  pleproperty->keyboard = LAYOUT_2PART;
  pleproperty->charset = IN_UNICODE;
  pleproperty->deletion = BY_CHAR;
  pleproperty->commit = COMMIT_BY_HOTKEY;

  g_leproperty_initialized = 1;
  
  return pleproperty;
}

Here is the caller graph for this function:

void leproperty_set_charset ( KOLE_property *  pp,
OPTION_CHARSET  c 
)

Definition at line 75 of file engine-property.c.

{
  pleproperty->charset = c; 
}

Here is the caller graph for this function:

void leproperty_set_commit ( KOLE_property *  pp,
OPTION_COMMIT_MODE  c 
)

Definition at line 99 of file engine-property.c.

{
  pleproperty->commit = c; 
}

Here is the caller graph for this function:

void leproperty_set_deletion ( KOLE_property *  pp,
OPTION_DELETION  d 
)

Definition at line 87 of file engine-property.c.

{
  pleproperty->deletion = d; 
}

Here is the caller graph for this function:

void leproperty_set_input_mode ( KOLE_property *  pp,
INPUT_MODE_T  imode 
)

Definition at line 49 of file engine-property.c.

{
   if(pp == NULL)
       return;
   pp->input_mode = imode;
}

Here is the caller graph for this function:

void leproperty_set_keyboard ( KOLE_property *  pp,
KEYBOARD_LAYOUT_T  k 
)

Definition at line 63 of file engine-property.c.

{
  pleproperty->keyboard = k;
}

Here is the caller graph for this function: