Home
last modified time | relevance | path

Searched refs:cur_pos (Results 1 – 2 of 2) sorted by relevance

/lvgl-2.7.6/src/lv_widgets/
Dlv_spinbox.c590 uint8_t cur_pos = (uint8_t)ext->digit_count; in lv_spinbox_updatevalue() local
593 cur_pos--; in lv_spinbox_updatevalue()
596 if(cur_pos > intDigits) cur_pos++; /*Skip the decimal point*/ in lv_spinbox_updatevalue()
598 cur_pos += (ext->digit_padding_left - cur_shift_left); in lv_spinbox_updatevalue()
600 lv_textarea_set_cursor_pos(spinbox, cur_pos); in lv_spinbox_updatevalue()
Dlv_textarea.c412 uint32_t cur_pos = ext->cursor.pos; in lv_textarea_del_char() local
414 if(cur_pos == 0) return; in lv_textarea_del_char()
620 lv_point_t cur_pos; in lv_textarea_set_cursor_pos() local
626 lv_label_get_letter_pos(ext->label, pos, &cur_pos); in lv_textarea_set_cursor_pos()
632 if(lv_obj_get_y(label_par) + cur_pos.y < 0) { in lv_textarea_set_cursor_pos()
633 lv_obj_set_y(label_par, -cur_pos.y + top); in lv_textarea_set_cursor_pos()
637 if(label_cords.y1 + cur_pos.y + font_h + bottom > ta_cords.y2) { in lv_textarea_set_cursor_pos()
638 lv_obj_set_y(label_par, -(cur_pos.y - lv_obj_get_height(ta) + font_h + top + bottom)); in lv_textarea_set_cursor_pos()
641 if(lv_obj_get_x(label_par) + cur_pos.x < font_h) { in lv_textarea_set_cursor_pos()
642 lv_obj_set_x(label_par, -cur_pos.x + font_h); in lv_textarea_set_cursor_pos()
[all …]