Home
last modified time | relevance | path

Searched refs:font_h (Results 1 – 5 of 5) sorted by relevance

/lvgl-latest/src/widgets/checkbox/
Dlv_checkbox.c184 int32_t font_h = lv_font_get_line_height(font); in lv_checkbox_event() local
197 marker_size.x = font_h + marker_leftp + marker_rightp; in lv_checkbox_event()
198 marker_size.y = font_h + marker_topp + marker_bottomp; in lv_checkbox_event()
220 int32_t font_h = lv_font_get_line_height(font); in lv_checkbox_draw() local
245 marker_area.x1 = marker_area.x2 - font_h - marker_leftp - marker_rightp + 1; in lv_checkbox_draw()
249 marker_area.x2 = marker_area.x1 + font_h + marker_leftp + marker_rightp - 1; in lv_checkbox_draw()
252 marker_area.y2 = marker_area.y1 + font_h + marker_topp + marker_bottomp - 1; in lv_checkbox_draw()
272 int32_t y_ofs = (lv_area_get_height(&marker_area) - font_h) / 2; in lv_checkbox_draw()
/lvgl-latest/src/widgets/roller/
Dlv_roller.c695 const int32_t font_h = lv_font_get_line_height(font); in refr_position() local
708 const int32_t sel_y1 = id * (font_h + line_space); in refr_position()
709 const int32_t mid_y1 = h / 2 - font_h / 2; in refr_position()
779 int32_t font_h = lv_font_get_line_height(font); in release_handler() local
781 int32_t label_unit = font_h + line_space; in release_handler()
833 int32_t font_h = lv_font_get_line_height(font); in inf_normalize() local
838 int32_t sel_y1 = roller->sel_opt_id * (font_h + line_space); in inf_normalize()
839 int32_t mid_y1 = h / 2 - font_h / 2; in inf_normalize()
/lvgl-latest/src/widgets/dropdown/
Dlv_dropdown.c1024 int32_t font_h = lv_font_get_line_height(font); in draw_box() local
1030 rect_area.y1 += id * (font_h + line_space); in draw_box()
1033 rect_area.y2 = rect_area.y1 + font_h + line_space - 1; in draw_box()
1071 int32_t font_h = lv_font_get_line_height(label_dsc.font); in draw_box_label() local
1075 area_sel.y1 += id * (font_h + label_dsc.line_space); in draw_box_label()
1078 area_sel.y2 = area_sel.y1 + font_h + label_dsc.line_space - 1; in draw_box_label()
1190 int32_t font_h = lv_font_get_line_height(font); in get_id_on_point() local
1194 int32_t h = font_h + line_space; in get_id_on_point()
1216 int32_t font_h = lv_font_get_line_height(font); in position_to_selected() local
1218 int32_t unit_h = font_h + line_space; in position_to_selected()
/lvgl-latest/src/widgets/textarea/
Dlv_textarea.c476 int32_t font_h = lv_font_get_line_height(font); in lv_textarea_set_cursor_pos() local
482 if(cur_pos.y + font_h - lv_obj_get_scroll_top(obj) > h) { in lv_textarea_set_cursor_pos()
483 lv_obj_scroll_to_y(obj, cur_pos.y - h + font_h, LV_ANIM_ON); in lv_textarea_set_cursor_pos()
492 if(cur_pos.x + font_h - lv_obj_get_scroll_left(obj) > w) { in lv_textarea_set_cursor_pos()
493 lv_obj_scroll_to_x(obj, cur_pos.x - w + font_h, LV_ANIM_ON); in lv_textarea_set_cursor_pos()
880 int32_t font_h = lv_font_get_line_height(font); in lv_textarea_cursor_down() local
881 pos.y += font_h + line_space + 1; in lv_textarea_cursor_down()
908 int32_t font_h = lv_font_get_line_height(font); in lv_textarea_cursor_up() local
909 pos.y -= font_h + line_space - 1; in lv_textarea_cursor_up()
/lvgl-latest/src/widgets/label/
Dlv_label.c770 const int32_t font_h = lv_font_get_line_height(font); in lv_label_event() local
771 lv_event_set_ext_draw_size(e, font_h / 4); in lv_label_event()