Home
last modified time | relevance | path

Searched refs:border_width (Results 1 – 24 of 24) sorted by relevance

/lvgl-3.7.0/src/core/
Dlv_obj_pos.c253 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_obj_set_content_width() local
255 lv_obj_set_width(obj, w + pleft + pright + 2 * border_width); in lv_obj_set_content_width()
262 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_obj_set_content_height() local
264 lv_obj_set_height(obj, h + ptop + pbottom + 2 * border_width); in lv_obj_set_content_height()
574 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_obj_get_content_width() local
576 return lv_obj_get_width(obj) - left - right - 2 * border_width; in lv_obj_get_content_width()
585 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_obj_get_content_height() local
587 return lv_obj_get_height(obj) - top - bottom - 2 * border_width; in lv_obj_get_content_height()
593 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_obj_get_content_coords() local
596 lv_area_increase(area, -border_width, -border_width); in lv_obj_get_content_coords()
[all …]
Dlv_obj_scroll.c149 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_obj_get_scroll_bottom() local
152 child_res -= (obj->coords.y2 - pad_bottom - border_width); in lv_obj_get_scroll_bottom()
156 self_h = self_h - (lv_obj_get_height(obj) - pad_top - pad_bottom - 2 * border_width); in lv_obj_get_scroll_bottom()
175 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_obj_get_scroll_left() local
191 child_res = (obj->coords.x1 + pad_left + border_width) - child_res; in lv_obj_get_scroll_left()
198 self_w = self_w - (lv_obj_get_width(obj) - pad_right - pad_left - 2 * border_width); in lv_obj_get_scroll_left()
227 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_obj_get_scroll_right() local
230 child_res -= (obj->coords.x2 - pad_right - border_width); in lv_obj_get_scroll_right()
235 self_w = self_w - (lv_obj_get_width(obj) - pad_right - pad_left - 2 * border_width); in lv_obj_get_scroll_right()
699 lv_coord_t border_width = lv_obj_get_style_border_width(parent, LV_PART_MAIN); in scroll_area_into_view() local
[all …]
Dlv_obj_draw.c79 draw_dsc->border_width = lv_obj_get_style_border_width(obj, part); in lv_obj_init_draw_rect_dsc()
80 if(draw_dsc->border_width) { in lv_obj_init_draw_rect_dsc()
142 draw_dsc->border_width = lv_obj_get_style_border_width(obj, part); in lv_obj_init_draw_rect_dsc()
143 if(draw_dsc->border_width) { in lv_obj_init_draw_rect_dsc()
Dlv_obj.c682 dsc->border_width = lv_obj_get_style_border_width(obj, LV_PART_SCROLLBAR); in scrollbar_init_draw_dsc()
683 if(dsc->border_width > 0) { in scrollbar_init_draw_dsc()
Dlv_refr.c156 draw_dsc.border_width = 1; in lv_obj_redraw()
/lvgl-3.7.0/src/draw/nxp/vglite/
Dlv_draw_vglite.c407 if(dsc->border_width > 1 && dsc->border_opa >= (lv_opa_t)LV_OPA_MAX && dsc->radius != 0) { in lv_draw_vglite_bg()
452 if(dsc->border_width == 0) in lv_draw_vglite_border()
460 lv_coord_t border_width = dsc->border_width; in lv_draw_vglite_border() local
463 rel_coords.x1 = coords->x1 + ceil(border_width / 2.0f); in lv_draw_vglite_border()
464 rel_coords.x2 = coords->x2 - floor(border_width / 2.0f); in lv_draw_vglite_border()
465 rel_coords.y1 = coords->y1 + ceil(border_width / 2.0f); in lv_draw_vglite_border()
466 rel_coords.y2 = coords->y2 - floor(border_width / 2.0f); in lv_draw_vglite_border()
Dlv_draw_vglite_rect.c209 lv_coord_t border_half = (lv_coord_t)floor(dsc->border_width / 2.0f); in lv_gpu_nxp_vglite_draw_border_generic()
248 line_width = dsc->border_width; in lv_gpu_nxp_vglite_draw_border_generic()
/lvgl-3.7.0/src/draw/
Dlv_draw_rect.h51 lv_coord_t border_width; member
/lvgl-3.7.0/src/widgets/
Dlv_textarea.c1099 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_CURSOR); in refr_cursor_area() local
1100 lv_coord_t top = lv_obj_get_style_pad_top(obj, LV_PART_CURSOR) + border_width; in refr_cursor_area()
1101 lv_coord_t bottom = lv_obj_get_style_pad_bottom(obj, LV_PART_CURSOR) + border_width; in refr_cursor_area()
1102 lv_coord_t left = lv_obj_get_style_pad_left(obj, LV_PART_CURSOR) + border_width; in refr_cursor_area()
1103 lv_coord_t right = lv_obj_get_style_pad_right(obj, LV_PART_CURSOR) + border_width; in refr_cursor_area()
1285 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in draw_placeholder() local
1288 lv_area_move(&ph_coords, left + border_width, top + border_width); in draw_placeholder()
1317 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_CURSOR); in draw_cursor() local
1318 lv_coord_t left = lv_obj_get_style_pad_left(obj, LV_PART_CURSOR) + border_width; in draw_cursor()
1319 lv_coord_t top = lv_obj_get_style_pad_top(obj, LV_PART_CURSOR) + border_width; in draw_cursor()
Dlv_table.c682 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in draw_main() local
707 cell_area.y2 = obj->coords.y1 + bg_top - 1 - lv_obj_get_scroll_y(obj) + border_width; in draw_main()
728 if(rtl) cell_area.x1 = obj->coords.x2 - bg_right - 1 - scroll_x - border_width; in draw_main()
729 else cell_area.x2 = obj->coords.x1 + bg_left - 1 - scroll_x + border_width; in draw_main()
772 cell_area_border.x1 -= rect_dsc_def.border_width / 2; in draw_main()
775 cell_area_border.y1 -= rect_dsc_def.border_width / 2; in draw_main()
778 … cell_area_border.x2 += rect_dsc_def.border_width / 2 + (rect_dsc_def.border_width & 0x1); in draw_main()
782 … cell_area_border.y2 += rect_dsc_def.border_width / 2 + (rect_dsc_def.border_width & 0x1); in draw_main()
Dlv_img.c574 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in draw_img() local
575 lv_coord_t pleft = lv_obj_get_style_pad_left(obj, LV_PART_MAIN) + border_width; in draw_img()
576 lv_coord_t pright = lv_obj_get_style_pad_right(obj, LV_PART_MAIN) + border_width; in draw_img()
577 lv_coord_t ptop = lv_obj_get_style_pad_top(obj, LV_PART_MAIN) + border_width; in draw_img()
578 lv_coord_t pbottom = lv_obj_get_style_pad_bottom(obj, LV_PART_MAIN) + border_width; in draw_img()
Dlv_dropdown.c479 lv_coord_t border_width = lv_obj_get_style_border_width(dropdown->list, LV_PART_MAIN); in lv_dropdown_open() local
480 lv_coord_t top = lv_obj_get_style_pad_top(dropdown->list, LV_PART_MAIN) + border_width; in lv_dropdown_open()
481 lv_coord_t bottom = lv_obj_get_style_pad_bottom(dropdown->list, LV_PART_MAIN) + border_width; in lv_dropdown_open()
785 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in draw_main() local
786 lv_coord_t left = lv_obj_get_style_pad_left(obj, LV_PART_MAIN) + border_width; in draw_main()
787 lv_coord_t right = lv_obj_get_style_pad_right(obj, LV_PART_MAIN) + border_width; in draw_main()
788 lv_coord_t top = lv_obj_get_style_pad_top(obj, LV_PART_MAIN) + border_width; in draw_main()
Dlv_roller.c197 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_roller_set_visible_row_count() local
198 … lv_obj_set_height(obj, (lv_font_get_line_height(font) + line_space) * row_cnt + 2 * border_width); in lv_roller_set_visible_row_count()
/lvgl-3.7.0/examples/widgets/canvas/
Dlv_example_canvas_1.c16 rect_dsc.border_width = 2; in lv_example_canvas_1()
Dlv_example_canvas_1.py12 rect_dsc.border_width = 2
/lvgl-3.7.0/src/draw/sdl/
Dlv_draw_sdl_rect.c126 #define SKIP_BORDER(dsc) ((dsc)->border_opa <= LV_OPA_MIN || (dsc)->border_width == 0 || (dsc)->bor…
716 …ner.x1 += ((dsc->border_side & LV_BORDER_SIDE_LEFT) ? dsc->border_width : -(dsc->border_width + ro… in draw_border()
717 …er.x2 -= ((dsc->border_side & LV_BORDER_SIDE_RIGHT) ? dsc->border_width : -(dsc->border_width + ro… in draw_border()
718 …nner.y1 += ((dsc->border_side & LV_BORDER_SIDE_TOP) ? dsc->border_width : -(dsc->border_width + ro… in draw_border()
719 …r.y2 -= ((dsc->border_side & LV_BORDER_SIDE_BOTTOM) ? dsc->border_width : -(dsc->border_width + ro… in draw_border()
720 lv_coord_t rin = LV_MAX(rout - dsc->border_width, 0); in draw_border()
Dlv_draw_sdl_label.c93 glyph_dsc.border_width = 1; in lv_draw_sdl_draw_letter()
/lvgl-3.7.0/src/extra/widgets/chart/
Dlv_chart.c316 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_chart_get_point_pos_by_id() local
317 p_out->x += lv_obj_get_style_pad_left(obj, LV_PART_MAIN) + border_width; in lv_chart_get_point_pos_by_id()
326 p_out->y += lv_obj_get_style_pad_top(obj, LV_PART_MAIN) + border_width; in lv_chart_get_point_pos_by_id()
776 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in draw_div_lines() local
777 lv_coord_t pad_left = lv_obj_get_style_pad_left(obj, LV_PART_MAIN) + border_width; in draw_div_lines()
778 lv_coord_t pad_top = lv_obj_get_style_pad_top(obj, LV_PART_MAIN) + border_width; in draw_div_lines()
882 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in draw_series_line() local
883 lv_coord_t pad_left = lv_obj_get_style_pad_left(obj, LV_PART_MAIN) + border_width; in draw_series_line()
884 lv_coord_t pad_top = lv_obj_get_style_pad_top(obj, LV_PART_MAIN) + border_width; in draw_series_line()
1051 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in draw_series_scatter() local
[all …]
/lvgl-3.7.0/src/draw/sw/
Dlv_draw_sw_rect.c105 if(dsc->border_width > 1 && dsc->border_opa >= LV_OPA_MAX && dsc->radius != 0) { in draw_bg()
401 if(dsc->border_width == 0) return; in draw_border()
414 …ner.x1 += ((dsc->border_side & LV_BORDER_SIDE_LEFT) ? dsc->border_width : - (dsc->border_width + r… in draw_border()
415 …er.x2 -= ((dsc->border_side & LV_BORDER_SIDE_RIGHT) ? dsc->border_width : - (dsc->border_width + r… in draw_border()
416 …nner.y1 += ((dsc->border_side & LV_BORDER_SIDE_TOP) ? dsc->border_width : - (dsc->border_width + r… in draw_border()
417 …r.y2 -= ((dsc->border_side & LV_BORDER_SIDE_BOTTOM) ? dsc->border_width : - (dsc->border_width + r… in draw_border()
419 lv_coord_t rin = rout - dsc->border_width; in draw_border()
Dlv_draw_sw_letter.c120 glyph_dsc.border_width = 1; in lv_draw_sw_letter()
/lvgl-3.7.0/src/extra/layouts/flex/
Dlv_flex.c226 lv_coord_t border_width = lv_obj_get_style_border_width(cont, LV_PART_MAIN); in flex_update() local
228 … LV_PART_MAIN) + border_width - lv_obj_get_scroll_y(cont); in flex_update()
230 … LV_PART_MAIN) + border_width - lv_obj_get_scroll_x(cont); in flex_update()
/lvgl-3.7.0/docs/porting/
Dgpu.md176     if(dsc->border_width) {
177       my_border_drawer(draw_ctx, coords, dsc->border_width, dsc->border_color, dsc->border_opa)
/lvgl-3.7.0/src/extra/widgets/calendar/
Dlv_calendar.c317 dsc->rect_dsc->border_width += 1; in draw_part_begin_event_cb()
/lvgl-3.7.0/docs/overview/
Dstyle-props.md357 ### border_width subsection