Lines Matching refs:pos

301 void lv_label_get_letter_pos(const lv_obj_t * obj, uint32_t char_id, lv_point_t * pos)  in lv_label_get_letter_pos()  argument
304 LV_ASSERT_NULL(pos); in lv_label_get_letter_pos()
311 pos->y = 0; in lv_label_get_letter_pos()
314 pos->x = 0; in lv_label_get_letter_pos()
317 pos->x = lv_obj_get_content_width(obj); in lv_label_get_letter_pos()
320 pos->x = lv_obj_get_content_width(obj) / 2; in lv_label_get_letter_pos()
323 pos->x = 0; in lv_label_get_letter_pos()
401 pos->x = x; in lv_label_get_letter_pos()
402 pos->y = y; in lv_label_get_letter_pos()
416 lv_point_t pos; in lv_label_get_letter_on() local
417 pos.x = pos_in->x - lv_obj_get_style_pad_left(obj, LV_PART_MAIN); in lv_label_get_letter_on()
418 pos.y = pos_in->y - lv_obj_get_style_pad_top(obj, LV_PART_MAIN); in lv_label_get_letter_on()
444 if(pos.y <= y + letter_height) { in lv_label_get_letter_on()
502 … if(pos.x < x + gw || i + line_start == new_line_start || txt[i_act + line_start] == '\0') { in lv_label_get_letter_on()
537 bool lv_label_is_char_under_pos(const lv_obj_t * obj, lv_point_t * pos) in lv_label_is_char_under_pos() argument
540 LV_ASSERT_NULL(pos); in lv_label_is_char_under_pos()
565 if(pos->y <= y + letter_height) break; /*The line is found (stored in 'line_start')*/ in lv_label_is_char_under_pos()
608 if(pos->x < x) { in lv_label_is_char_under_pos()
618 return (pos->x >= (last_x - letter_space) && pos->x <= (last_x + max_diff)); in lv_label_is_char_under_pos()
659 void lv_label_ins_text(lv_obj_t * obj, uint32_t pos, const char * txt) in lv_label_ins_text() argument
679 if(pos == LV_LABEL_POS_LAST) { in lv_label_ins_text()
680 pos = lv_text_get_encoded_length(label->text); in lv_label_ins_text()
683 lv_text_ins(label->text, pos, txt); in lv_label_ins_text()
687 void lv_label_cut_text(lv_obj_t * obj, uint32_t pos, uint32_t cnt) in lv_label_cut_text() argument
699 lv_text_cut(label_txt, pos, cnt); in lv_label_cut_text()