21#if LV_USE_BTNMATRIX == 0
22#error "lv_kb: lv_btnm is required. Enable it in lv_conf.h (LV_USE_BTNMATRIX 1) "
25#if LV_USE_TEXTAREA == 0
26#error "lv_kb: lv_ta is required. Enable it in lv_conf.h (LV_USE_TEXTAREA 1) "
32#define LV_KEYBOARD_CTRL_BTN_FLAGS (LV_BTNMATRIX_CTRL_NO_REPEAT | LV_BTNMATRIX_CTRL_CLICK_TRIG | LV_BTNMATRIX_CTRL_CHECKED)
40 LV_KEYBOARD_MODE_TEXT_LOWER,
41 LV_KEYBOARD_MODE_TEXT_UPPER,
42 LV_KEYBOARD_MODE_SPECIAL,
43 LV_KEYBOARD_MODE_NUMBER,
44 LV_KEYBOARD_MODE_USER_1,
45 LV_KEYBOARD_MODE_USER_2,
46 LV_KEYBOARD_MODE_USER_3,
47 LV_KEYBOARD_MODE_USER_4,
49typedef uint8_t lv_keyboard_mode_t;
55 lv_keyboard_mode_t mode;
88void lv_keyboard_set_mode(
lv_obj_t * kb, lv_keyboard_mode_t mode);
95void lv_keyboard_set_popovers(
lv_obj_t * kb,
bool en);
104void lv_keyboard_set_map(
lv_obj_t * kb, lv_keyboard_mode_t mode,
const char * map[],
105 const lv_btnmatrix_ctrl_t ctrl_map[]);
123lv_keyboard_mode_t lv_keyboard_get_mode(
const lv_obj_t * kb);
130bool lv_btnmatrix_get_popovers(
const lv_obj_t * obj);
137static inline const char ** lv_keyboard_get_map_array(
const lv_obj_t * kb)
139 return lv_btnmatrix_get_map(kb);
148static inline uint16_t lv_keyboard_get_selected_btn(
const lv_obj_t * obj)
150 return lv_btnmatrix_get_selected_btn(obj);
159static inline const char * lv_keyboard_get_btn_text(
const lv_obj_t * obj, uint16_t btn_id)
161 return lv_btnmatrix_get_btn_text(obj, btn_id);
Definition lv_obj_class.h:49