Lines Matching refs:keyboard

161     lv_keyboard_t * keyboard = (lv_keyboard_t *)obj;  in lv_keyboard_set_textarea()  local
164 if(keyboard->ta) { in lv_keyboard_set_textarea()
168 keyboard->ta = ta; in lv_keyboard_set_textarea()
171 if(keyboard->ta) { in lv_keyboard_set_textarea()
184 lv_keyboard_t * keyboard = (lv_keyboard_t *)obj; in lv_keyboard_set_mode() local
185 if(keyboard->mode == mode) return; in lv_keyboard_set_mode()
187 keyboard->mode = mode; in lv_keyboard_set_mode()
198 lv_keyboard_t * keyboard = (lv_keyboard_t *)obj; in lv_keyboard_set_popovers() local
200 if(keyboard->popovers == en) { in lv_keyboard_set_popovers()
204 keyboard->popovers = en; in lv_keyboard_set_popovers()
235 lv_keyboard_t * keyboard = (lv_keyboard_t *)obj; in lv_keyboard_get_textarea() local
236 return keyboard->ta; in lv_keyboard_get_textarea()
247 lv_keyboard_t * keyboard = (lv_keyboard_t *)obj; in lv_keyboard_get_mode() local
248 return keyboard->mode; in lv_keyboard_get_mode()
258 lv_keyboard_t * keyboard = (lv_keyboard_t *)obj; in lv_btnmatrix_get_popovers() local
259 return keyboard->popovers; in lv_btnmatrix_get_popovers()
278 lv_keyboard_t * keyboard = (lv_keyboard_t *)obj; in lv_keyboard_def_event_cb() local
286 keyboard->mode = LV_KEYBOARD_MODE_TEXT_LOWER; in lv_keyboard_def_event_cb()
292 keyboard->mode = LV_KEYBOARD_MODE_TEXT_UPPER; in lv_keyboard_def_event_cb()
298 keyboard->mode = LV_KEYBOARD_MODE_SPECIAL; in lv_keyboard_def_event_cb()
307 if(keyboard->ta) { in lv_keyboard_def_event_cb()
308 res = lv_event_send(keyboard->ta, LV_EVENT_CANCEL, NULL); in lv_keyboard_def_event_cb()
317 if(keyboard->ta) { in lv_keyboard_def_event_cb()
318 res = lv_event_send(keyboard->ta, LV_EVENT_READY, NULL); in lv_keyboard_def_event_cb()
325 if(keyboard->ta == NULL) return; in lv_keyboard_def_event_cb()
328 lv_textarea_add_char(keyboard->ta, '\n'); in lv_keyboard_def_event_cb()
329 if(lv_textarea_get_one_line(keyboard->ta)) { in lv_keyboard_def_event_cb()
330 lv_res_t res = lv_event_send(keyboard->ta, LV_EVENT_READY, NULL); in lv_keyboard_def_event_cb()
335 lv_textarea_cursor_left(keyboard->ta); in lv_keyboard_def_event_cb()
338 lv_textarea_cursor_right(keyboard->ta); in lv_keyboard_def_event_cb()
341 lv_textarea_del_char(keyboard->ta); in lv_keyboard_def_event_cb()
344 uint16_t cur = lv_textarea_get_cursor_pos(keyboard->ta); in lv_keyboard_def_event_cb()
345 const char * ta_txt = lv_textarea_get_text(keyboard->ta); in lv_keyboard_def_event_cb()
347 lv_textarea_set_cursor_pos(keyboard->ta, 1); in lv_keyboard_def_event_cb()
348 lv_textarea_del_char(keyboard->ta); in lv_keyboard_def_event_cb()
349 lv_textarea_add_char(keyboard->ta, '+'); in lv_keyboard_def_event_cb()
350 lv_textarea_set_cursor_pos(keyboard->ta, cur); in lv_keyboard_def_event_cb()
353 lv_textarea_set_cursor_pos(keyboard->ta, 1); in lv_keyboard_def_event_cb()
354 lv_textarea_del_char(keyboard->ta); in lv_keyboard_def_event_cb()
355 lv_textarea_add_char(keyboard->ta, '-'); in lv_keyboard_def_event_cb()
356 lv_textarea_set_cursor_pos(keyboard->ta, cur); in lv_keyboard_def_event_cb()
359 lv_textarea_set_cursor_pos(keyboard->ta, 0); in lv_keyboard_def_event_cb()
360 lv_textarea_add_char(keyboard->ta, '-'); in lv_keyboard_def_event_cb()
361 lv_textarea_set_cursor_pos(keyboard->ta, cur + 1); in lv_keyboard_def_event_cb()
365 lv_textarea_add_text(keyboard->ta, txt); in lv_keyboard_def_event_cb()
378 lv_keyboard_t * keyboard = (lv_keyboard_t *)obj; in lv_keyboard_constructor() local
379 keyboard->ta = NULL; in lv_keyboard_constructor()
380 keyboard->mode = LV_KEYBOARD_MODE_TEXT_LOWER; in lv_keyboard_constructor()
381 keyboard->popovers = 0; in lv_keyboard_constructor()
396 lv_keyboard_t * keyboard = (lv_keyboard_t *)obj; in lv_keyboard_update_map() local
397 lv_btnmatrix_set_map(obj, kb_map[keyboard->mode]); in lv_keyboard_update_map()
407 lv_keyboard_t * keyboard = (lv_keyboard_t *)obj; in lv_keyboard_update_ctrl_map() local
409 if(keyboard->popovers) { in lv_keyboard_update_ctrl_map()
411 lv_btnmatrix_set_ctrl_map(obj, kb_ctrl[keyboard->mode]); in lv_keyboard_update_ctrl_map()
417 lv_memcpy(ctrl_map, kb_ctrl[keyboard->mode], sizeof(lv_btnmatrix_ctrl_t) * btnm->btn_cnt); in lv_keyboard_update_ctrl_map()