Lines Matching refs:ta

154 void lv_keyboard_set_textarea(lv_obj_t * obj, lv_obj_t * ta)  in lv_keyboard_set_textarea()  argument
156 if(ta) { in lv_keyboard_set_textarea()
157 LV_ASSERT_OBJ(ta, &lv_textarea_class); in lv_keyboard_set_textarea()
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()
236 return keyboard->ta; in lv_keyboard_get_textarea()
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()
379 keyboard->ta = NULL; in lv_keyboard_constructor()