lv_ime_pinyin.h

Defines

LV_IME_PINYIN_K9_MAX_INPUT

Enums

enum lv_ime_pinyin_mode_t

Values:

enumerator LV_IME_PINYIN_MODE_K26
enumerator LV_IME_PINYIN_MODE_K9
enumerator LV_IME_PINYIN_MODE_K9_NUMBER

Functions

lv_obj_t *lv_ime_pinyin_create(lv_obj_t *parent)
void lv_ime_pinyin_set_keyboard(lv_obj_t *obj, lv_obj_t *kb)

Set the keyboard of Pinyin input method.

Parameters:
  • obj -- pointer to a Pinyin input method object

  • kb -- pointer to a Pinyin input method keyboard

void lv_ime_pinyin_set_dict(lv_obj_t *obj, lv_pinyin_dict_t *dict)

Set the dictionary of Pinyin input method.

Parameters:
  • obj -- pointer to a Pinyin input method object

  • dict -- pointer to a Pinyin input method dictionary

void lv_ime_pinyin_set_mode(lv_obj_t *obj, lv_ime_pinyin_mode_t mode)

Set mode, 26-key input(k26) or 9-key input(k9).

Parameters:
  • obj -- pointer to a Pinyin input method object

  • mode -- the mode from 'lv_ime_pinyin_mode_t'

lv_obj_t *lv_ime_pinyin_get_kb(lv_obj_t *obj)

Set the dictionary of Pinyin input method.

Parameters:

obj -- pointer to a Pinyin IME object

Returns:

pointer to the Pinyin IME keyboard

lv_obj_t *lv_ime_pinyin_get_cand_panel(lv_obj_t *obj)

Set the dictionary of Pinyin input method.

Parameters:

obj -- pointer to a Pinyin input method object

Returns:

pointer to the Pinyin input method candidate panel

const lv_pinyin_dict_t *lv_ime_pinyin_get_dict(lv_obj_t *obj)

Set the dictionary of Pinyin input method.

Parameters:

obj -- pointer to a Pinyin input method object

Returns:

pointer to the Pinyin input method dictionary

Variables

const lv_obj_class_t lv_ime_pinyin_class
struct lv_pinyin_dict_t

Public Members

const char *const py
const char *const py_mb
struct ime_pinyin_k9_py_str_t

Public Members

char py_str[7]
struct lv_ime_pinyin_t

Public Members

lv_obj_t obj
lv_obj_t *kb
lv_obj_t *cand_panel
const lv_pinyin_dict_t *dict
char *cand_str
char input_char[16]
char k9_input_str[7 + 1]
uint16_t k9_py_ll_pos
uint16_t k9_input_str_len
uint16_t ta_count
uint16_t cand_num
uint16_t py_page
uint16_t py_num[26]
uint16_t py_pos[26]
lv_ime_pinyin_mode_t mode