Home
last modified time | relevance | path

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

/lvgl-3.7.0/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_clear_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_scr_act()); in lv_example_keyboard_1() local
29 lv_obj_add_event_cb(ta, ta_event_cb, LV_EVENT_ALL, kb); in lv_example_keyboard_1()
35 lv_obj_add_event_cb(ta, ta_event_cb, LV_EVENT_ALL, kb); in lv_example_keyboard_1()
38 lv_keyboard_set_textarea(kb, ta); in lv_example_keyboard_1()
Dlv_example_keyboard_1.py1 def ta_event_cb(e,kb): argument
5 kb.set_textarea(ta)
6 kb.clear_flag(lv.obj.FLAG.HIDDEN)
9 kb.set_textarea(None)
10 kb.add_flag(lv.obj.FLAG.HIDDEN)
13 kb = lv.keyboard(lv.scr_act()) variable
19 ta.add_event_cb(lambda e: ta_event_cb(e,kb), lv.EVENT.ALL, None)
25 ta.add_event_cb(lambda e: ta_event_cb(e,kb), lv.EVENT.ALL, None)
27 kb.set_textarea(ta)
/lvgl-3.7.0/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_clear_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_scr_act()); 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_clear_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_scr_act()); 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-3.7.0/src/extra/widgets/keyboard/
Dlv_keyboard.h81 void lv_keyboard_set_textarea(lv_obj_t * kb, lv_obj_t * ta);
88 void lv_keyboard_set_mode(lv_obj_t * kb, lv_keyboard_mode_t mode);
95 void lv_keyboard_set_popovers(lv_obj_t * kb, bool en);
104 void lv_keyboard_set_map(lv_obj_t * kb, lv_keyboard_mode_t mode, const char * map[],
116 lv_obj_t * lv_keyboard_get_textarea(const lv_obj_t * kb);
123 lv_keyboard_mode_t lv_keyboard_get_mode(const lv_obj_t * kb);
137 static inline const char ** lv_keyboard_get_map_array(const lv_obj_t * kb) in lv_keyboard_get_map_array() argument
139 return lv_btnmatrix_get_map(kb); in lv_keyboard_get_map_array()
/lvgl-3.7.0/examples/widgets/textarea/
Dlv_example_textarea_3.c6 static lv_obj_t * kb; variable
23 kb = lv_keyboard_create(lv_scr_act()); 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()
Dlv_example_textarea_2.c6 static lv_obj_t * kb; variable
38 kb = lv_keyboard_create(lv_scr_act()); 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()
50 if(kb != NULL) lv_keyboard_set_textarea(kb, ta); in ta_event_cb()
Dlv_example_textarea_2.py6 if kb != None:
7 kb.set_textarea(ta)
45 kb = lv.keyboard(lv.scr_act()) variable
46 kb.set_size(LV_HOR_RES, LV_VER_RES // 2)
48 kb.set_textarea(pwd_ta) # Focus it on one of the text areas to start
Dlv_example_textarea_3.py45 kb = lv.keyboard(lv.scr_act()) variable
46 kb.set_size(LV_HOR_RES, LV_VER_RES // 2)
47 kb.set_mode(lv.keyboard.MODE.NUMBER)
48 kb.set_textarea(ta)
/lvgl-3.7.0/demos/keypad_encoder/
Dlv_demo_keypad_encoder.c164 lv_obj_t * kb = lv_keyboard_create(lv_scr_act()); in text_input_create() local
165 lv_obj_add_flag(kb, LV_OBJ_FLAG_HIDDEN); in text_input_create()
167 lv_obj_add_event_cb(ta1, ta_event_cb, LV_EVENT_ALL, kb); in text_input_create()
168 lv_obj_add_event_cb(ta2, ta_event_cb, LV_EVENT_ALL, kb); in text_input_create()
212 lv_obj_t * kb = lv_event_get_user_data(e); in ta_event_cb() local
215 lv_keyboard_set_textarea(kb, ta); in ta_event_cb()
216 lv_obj_clear_flag(kb, LV_OBJ_FLAG_HIDDEN); in ta_event_cb()
217 lv_group_focus_obj(kb); in ta_event_cb()
218 lv_group_set_editing(lv_obj_get_group(kb), kb); in ta_event_cb()
220 lv_obj_align(kb, LV_ALIGN_BOTTOM_MID, 0, 0); in ta_event_cb()
[all …]
/lvgl-3.7.0/src/extra/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_add_event_cb(pinyin_ime->kb, lv_ime_pinyin_kb_event, LV_EVENT_VALUE_CHANGED, obj); in lv_ime_pinyin_set_keyboard()
436 lv_obj_align_to(pinyin_ime->cand_panel, pinyin_ime->kb, LV_ALIGN_OUT_TOP_MID, 0, 0); in lv_ime_pinyin_set_keyboard()
461 LV_ASSERT_OBJ(pinyin_ime->kb, &lv_keyboard_class); in lv_ime_pinyin_set_mode()
468 …lv_keyboard_set_map(pinyin_ime->kb, LV_KEYBOARD_MODE_USER_1, (const char *)lv_btnm_def_pinyin_k9_m… in lv_ime_pinyin_set_mode()
470 lv_keyboard_set_mode(pinyin_ime->kb, LV_KEYBOARD_MODE_USER_1); in lv_ime_pinyin_set_mode()
490 return pinyin_ime->kb; in lv_ime_pinyin_get_kb()
[all …]
Dlv_ime_pinyin.h47 lv_obj_t * kb; member
85 void lv_ime_pinyin_set_keyboard(lv_obj_t * obj, lv_obj_t * kb);
/lvgl-3.7.0/docs/widgets/extra/
Dkeyboard.md26 To set the mode manually, use `lv_keyboard_set_mode(kb, mode)`. The default mode is `LV_KEYBOARD_M…
30 To assign the text area, use `lv_keyboard_set_textarea(kb, ta)`.
33 …s, like on common Android and iOS keyboards, use `lv_keyboard_set_popovers(kb, true)`. The default…
40 …ap (layout) for the keyboard with `lv_keyboard_set_map(kb, map)` and `lv_keyboard_set_ctrl_map(kb,…
/lvgl-3.7.0/examples/others/msg/
Dlv_example_msg_2.c36 lv_obj_t * kb = lv_keyboard_create(lv_scr_act()); in lv_example_msg_2() local
37 lv_keyboard_set_textarea(kb, ta); in lv_example_msg_2()
/lvgl-3.7.0/demos/widgets/
Dlv_demo_widgets.c269 lv_obj_t * kb = lv_keyboard_create(lv_scr_act()); in profile_create() local
270 lv_obj_add_flag(kb, LV_OBJ_FLAG_HIDDEN); in profile_create()
287 lv_obj_add_event_cb(user_name, ta_event_cb, LV_EVENT_ALL, kb); in profile_create()
297 lv_obj_add_event_cb(password, ta_event_cb, LV_EVENT_ALL, kb); in profile_create()
1214 lv_obj_t * kb = lv_event_get_user_data(e); in ta_event_cb() local
1217 lv_keyboard_set_textarea(kb, ta); in ta_event_cb()
1218 lv_obj_set_style_max_height(kb, LV_HOR_RES * 2 / 3, 0); in ta_event_cb()
1220 lv_obj_set_height(tv, LV_VER_RES - lv_obj_get_height(kb)); in ta_event_cb()
1221 lv_obj_clear_flag(kb, LV_OBJ_FLAG_HIDDEN); in ta_event_cb()
1226 lv_keyboard_set_textarea(kb, NULL); in ta_event_cb()
[all …]
/lvgl-3.7.0/docs/others/
Dime_pinyin.md22 …yin input method plug-in, then use `lv_ime_pinyin_set_keyboard(pinyin_ime, kb)` to add the `keyboa…
36 然后使用 `lv_ime_pinyin_set_keyboard(pinyin_ime, kb)` 函数将您创建的键盘组件添加到插件中。
/lvgl-3.7.0/docs/
DCHANGELOG.md2064 - kb -> keyboard