Searched refs:rel_pos (Results 1 – 1 of 1) sorted by relevance
1818 lv_point_t rel_pos; in update_cursor_position_on_click() local1819 rel_pos.x = point_act.x - label_coords.x1; in update_cursor_position_on_click()1820 rel_pos.y = point_act.y - label_coords.y1; in update_cursor_position_on_click()1830 if(rel_pos.x < 0) { in update_cursor_position_on_click()1835 else if(rel_pos.x >= label_width) { in update_cursor_position_on_click()1840 char_id_at_click = lv_label_get_letter_on(ext->label, &rel_pos); in update_cursor_position_on_click()1841 click_outside_label = !lv_label_is_char_under_pos(ext->label, &rel_pos); in update_cursor_position_on_click()1896 if(rel_pos.x < 0) { in update_cursor_position_on_click()1900 else if(rel_pos.x >= label_width) { in update_cursor_position_on_click()1904 char_id_at_click = lv_label_get_letter_on(ext->label, &rel_pos); in update_cursor_position_on_click()