Home
last modified time | relevance | path

Searched refs:kb (Results 1 – 17 of 17) sorted by relevance

/lvgl-latest/examples/widgets/keyboard/
Dlv_example_keyboard_1.c8 lv_obj_t * kb = lv_event_get_user_data(e); in ta_event_cb() local
10 lv_keyboard_set_textarea(kb, ta); in ta_event_cb()
11 lv_obj_remove_flag(kb, LV_OBJ_FLAG_HIDDEN); in ta_event_cb()
15 lv_keyboard_set_textarea(kb, NULL); in ta_event_cb()
16 lv_obj_add_flag(kb, LV_OBJ_FLAG_HIDDEN); in ta_event_cb()
23 lv_obj_t * kb = lv_keyboard_create(lv_screen_active()); in lv_example_keyboard_1() local
29 lv_obj_add_event_cb(ta1, ta_event_cb, LV_EVENT_ALL, kb); in lv_example_keyboard_1()
36 lv_obj_add_event_cb(ta2, ta_event_cb, LV_EVENT_ALL, kb); in lv_example_keyboard_1()
39 lv_keyboard_set_textarea(kb, ta1); in lv_example_keyboard_1()
43 lv_obj_set_style_text_font(kb, &lv_font_dejavu_16_persian_hebrew, 0); in lv_example_keyboard_1()
Dlv_example_keyboard_2.c21 lv_obj_t * kb = lv_keyboard_create(lv_screen_active()); in lv_example_keyboard_2() local
23 lv_keyboard_set_map(kb, LV_KEYBOARD_MODE_USER_1, kb_map, kb_ctrl); in lv_example_keyboard_2()
24 lv_keyboard_set_mode(kb, LV_KEYBOARD_MODE_USER_1); in lv_example_keyboard_2()
33 lv_keyboard_set_textarea(kb, ta); in lv_example_keyboard_2()
/lvgl-latest/examples/others/ime/
Dlv_example_ime_pinyin_1.c8 lv_obj_t * kb = lv_event_get_user_data(e); in ta_event_cb() local
12 lv_keyboard_set_textarea(kb, ta); in ta_event_cb()
13 lv_obj_remove_flag(kb, LV_OBJ_FLAG_HIDDEN); in ta_event_cb()
17 lv_obj_add_flag(kb, LV_OBJ_FLAG_HIDDEN); in ta_event_cb()
36 lv_obj_t * kb = lv_keyboard_create(lv_screen_active()); in lv_example_ime_pinyin_1() local
37 lv_ime_pinyin_set_keyboard(pinyin_ime, kb); in lv_example_ime_pinyin_1()
38 lv_keyboard_set_textarea(kb, ta1); in lv_example_ime_pinyin_1()
40 lv_obj_add_event_cb(ta1, ta_event_cb, LV_EVENT_ALL, kb); in lv_example_ime_pinyin_1()
45 lv_obj_align_to(cand_panel, kb, LV_ALIGN_OUT_TOP_MID, 0, 0); in lv_example_ime_pinyin_1()
Dlv_example_ime_pinyin_2.c8 lv_obj_t * kb = lv_event_get_user_data(e); in ta_event_cb() local
12 lv_keyboard_set_textarea(kb, ta); in ta_event_cb()
13 lv_obj_remove_flag(kb, LV_OBJ_FLAG_HIDDEN); in ta_event_cb()
17 lv_obj_add_flag(kb, LV_OBJ_FLAG_HIDDEN); in ta_event_cb()
36 lv_obj_t * kb = lv_keyboard_create(lv_screen_active()); in lv_example_ime_pinyin_2() local
37 lv_keyboard_set_textarea(kb, ta1); in lv_example_ime_pinyin_2()
39 lv_ime_pinyin_set_keyboard(pinyin_ime, kb); in lv_example_ime_pinyin_2()
42 lv_obj_add_event_cb(ta1, ta_event_cb, LV_EVENT_ALL, kb); in lv_example_ime_pinyin_2()
47 lv_obj_align_to(cand_panel, kb, LV_ALIGN_OUT_TOP_MID, 0, 0); in lv_example_ime_pinyin_2()
/lvgl-latest/src/widgets/keyboard/
Dlv_keyboard.h85 void lv_keyboard_set_textarea(lv_obj_t * kb, lv_obj_t * ta);
92 void lv_keyboard_set_mode(lv_obj_t * kb, lv_keyboard_mode_t mode);
99 void lv_keyboard_set_popovers(lv_obj_t * kb, bool en);
110 void lv_keyboard_set_map(lv_obj_t * kb, lv_keyboard_mode_t mode, const char * const map[],
122 lv_obj_t * lv_keyboard_get_textarea(const lv_obj_t * kb);
129 lv_keyboard_mode_t lv_keyboard_get_mode(const lv_obj_t * kb);
143 const char * const * lv_keyboard_get_map_array(const lv_obj_t * kb);
Dlv_keyboard.c413 const char * const * lv_keyboard_get_map_array(const lv_obj_t * kb) in lv_keyboard_get_map_array() argument
415 return lv_buttonmatrix_get_map(kb); in lv_keyboard_get_map_array()
/lvgl-latest/examples/widgets/textarea/
Dlv_example_textarea_2.c6 static lv_obj_t * kb; variable
38 kb = lv_keyboard_create(lv_screen_active()); in lv_example_textarea_2()
39 lv_obj_set_size(kb, LV_HOR_RES, LV_VER_RES / 2); in lv_example_textarea_2()
41 lv_keyboard_set_textarea(kb, pwd_ta); /*Focus it on one of the text areas to start*/ in lv_example_textarea_2()
45 lv_obj_set_style_text_font(kb, &lv_font_dejavu_16_persian_hebrew, 0); in lv_example_textarea_2()
58 if(kb != NULL) lv_keyboard_set_textarea(kb, ta); in ta_event_cb()
Dlv_example_textarea_3.c6 static lv_obj_t * kb; variable
23 kb = lv_keyboard_create(lv_screen_active()); in lv_example_textarea_3()
24 lv_obj_set_size(kb, LV_HOR_RES, LV_VER_RES / 2); in lv_example_textarea_3()
25 lv_keyboard_set_mode(kb, LV_KEYBOARD_MODE_NUMBER); in lv_example_textarea_3()
26 lv_keyboard_set_textarea(kb, ta); in lv_example_textarea_3()
/lvgl-latest/demos/keypad_encoder/
Dlv_demo_keypad_encoder.c156 lv_obj_t * kb = lv_keyboard_create(lv_screen_active()); in text_input_create() local
157 lv_obj_add_flag(kb, LV_OBJ_FLAG_HIDDEN); in text_input_create()
159 lv_obj_add_event_cb(ta1, ta_event_cb, LV_EVENT_ALL, kb); in text_input_create()
160 lv_obj_add_event_cb(ta2, ta_event_cb, LV_EVENT_ALL, kb); in text_input_create()
200 lv_obj_t * kb = lv_event_get_user_data(e); in ta_event_cb() local
203 lv_keyboard_set_textarea(kb, ta); in ta_event_cb()
204 lv_obj_remove_flag(kb, LV_OBJ_FLAG_HIDDEN); in ta_event_cb()
205 lv_group_focus_obj(kb); in ta_event_cb()
206 lv_group_set_editing(lv_obj_get_group(kb), kb != NULL); in ta_event_cb()
208 lv_obj_align(kb, LV_ALIGN_BOTTOM_MID, 0, 0); in ta_event_cb()
[all …]
/lvgl-latest/src/others/ime/
Dlv_ime_pinyin.c425 void lv_ime_pinyin_set_keyboard(lv_obj_t * obj, lv_obj_t * kb) in lv_ime_pinyin_set_keyboard() argument
427 if(kb) { in lv_ime_pinyin_set_keyboard()
428 LV_ASSERT_OBJ(kb, &lv_keyboard_class); in lv_ime_pinyin_set_keyboard()
434 pinyin_ime->kb = kb; in lv_ime_pinyin_set_keyboard()
435 lv_obj_set_parent(obj, lv_obj_get_parent(kb)); in lv_ime_pinyin_set_keyboard()
436 lv_obj_set_parent(pinyin_ime->cand_panel, lv_obj_get_parent(kb)); in lv_ime_pinyin_set_keyboard()
437 lv_obj_add_event_cb(pinyin_ime->kb, lv_ime_pinyin_kb_event, LV_EVENT_VALUE_CHANGED, obj); in lv_ime_pinyin_set_keyboard()
438 lv_obj_align_to(pinyin_ime->cand_panel, pinyin_ime->kb, LV_ALIGN_OUT_TOP_MID, 0, 0); in lv_ime_pinyin_set_keyboard()
453 LV_ASSERT_OBJ(pinyin_ime->kb, &lv_keyboard_class); in lv_ime_pinyin_set_mode()
460 …lv_keyboard_set_map(pinyin_ime->kb, LV_KEYBOARD_MODE_USER_1, (const char **)lv_btnm_def_pinyin_k9_… in lv_ime_pinyin_set_mode()
[all …]
Dlv_ime_pinyin_private.h33 lv_obj_t * kb; member
Dlv_ime_pinyin.h66 void lv_ime_pinyin_set_keyboard(lv_obj_t * obj, lv_obj_t * kb);
/lvgl-latest/examples/others/observer/
Dlv_example_observer_2.c106 lv_obj_t * kb = lv_keyboard_create(lv_screen_active()); in ui_init() local
107 lv_keyboard_set_textarea(kb, ta); in ui_init()
/lvgl-latest/docs/details/widgets/
Dkeyboard.rst47 To set the mode programmatically, use :cpp:expr:`lv_keyboard_set_mode(kb, mode)`. The
55 use :cpp:expr:`lv_keyboard_set_textarea(kb, text_area)`.
61 keyboards, use :cpp:expr:`lv_keyboard_set_popovers(kb, true)`. Default
80 :cpp:expr:`lv_keyboard_set_map(kb, LV_KEYBOARD_MODE_..., kb_map, kb_ctrl)`. See
/lvgl-latest/demos/widgets/
Dlv_demo_widgets.c297 lv_obj_t * kb = lv_keyboard_create(lv_screen_active()); in profile_create() local
298 lv_obj_add_flag(kb, LV_OBJ_FLAG_HIDDEN); in profile_create()
315 lv_obj_add_event_cb(user_name, ta_event_cb, LV_EVENT_ALL, kb); in profile_create()
325 lv_obj_add_event_cb(password, ta_event_cb, LV_EVENT_ALL, kb); in profile_create()
1286 lv_obj_t * kb = lv_event_get_user_data(e); in ta_event_cb() local
1289 lv_keyboard_set_textarea(kb, ta); in ta_event_cb()
1290 lv_obj_set_style_max_height(kb, LV_HOR_RES * 2 / 3, 0); in ta_event_cb()
1292 lv_obj_set_height(tv, LV_VER_RES - lv_obj_get_height(kb)); in ta_event_cb()
1293 lv_obj_remove_flag(kb, LV_OBJ_FLAG_HIDDEN); in ta_event_cb()
1299 lv_keyboard_set_textarea(kb, NULL); in ta_event_cb()
[all …]
/lvgl-latest/docs/details/other-components/
Dime_pinyin.rst27 :cpp:expr:`lv_ime_pinyin_set_keyboard(pinyin_ime, kb)` to add the Keyboard Widget
/lvgl-latest/docs/details/libs/
Drlottie.rst157 240x320x32/8 (307k) available memory. The latest ESP32-S3 has 256kb RAM