Home
last modified time | relevance | path

Searched refs:line_width (Results 1 – 14 of 14) sorted by relevance

/lvgl-latest/src/draw/nxp/vglite/
Dlv_draw_vglite_border.c134 int32_t line_width = dsc->width; in _vglite_draw_border() local
148 rect[num_rect].x = coords->x1 - ceil(line_width / 2.0f); in _vglite_draw_border()
149 rect[num_rect].y = coords->y1 - ceil(line_width / 2.0f); in _vglite_draw_border()
150 rect[num_rect].width = coords->x2 - coords->x1 + line_width; in _vglite_draw_border()
151 rect[num_rect].height = final_radius + ceil(line_width / 2.0f); in _vglite_draw_border()
156 rect[num_rect].x = coords->x1 - ceil(line_width / 2.0f); in _vglite_draw_border()
157 rect[num_rect].y = coords->y1 - ceil(line_width / 2.0f); in _vglite_draw_border()
158 rect[num_rect].width = final_radius + ceil(line_width / 2.0f); in _vglite_draw_border()
159 rect[num_rect].height = coords->y2 - coords->y1 + line_width + 1; in _vglite_draw_border()
165 rect[num_rect].y = coords->y1 - ceil(line_width / 2.0f); in _vglite_draw_border()
[all …]
/lvgl-latest/src/draw/
Dlv_draw_label.c236 int32_t line_width = 0; in lv_draw_label_iterate_characters() local
288line_width = lv_text_get_width_with_flags(&dsc->text[line_start], line_end - line_start, font, dsc… in lv_draw_label_iterate_characters()
291 pos.x += (lv_area_get_width(coords) - line_width) / 2; in lv_draw_label_iterate_characters()
296line_width = lv_text_get_width_with_flags(&dsc->text[line_start], line_end - line_start, font, dsc… in lv_draw_label_iterate_characters()
298 pos.x += lv_area_get_width(coords) - line_width; in lv_draw_label_iterate_characters()
503 line_width = in lv_draw_label_iterate_characters()
506 pos.x += (lv_area_get_width(coords) - line_width) / 2; in lv_draw_label_iterate_characters()
510 line_width = in lv_draw_label_iterate_characters()
512 pos.x += lv_area_get_width(coords) - line_width; in lv_draw_label_iterate_characters()
Dlv_draw_buf.c219 int32_t line_width; in lv_draw_buf_copy() local
225 if(dest_area == NULL) line_width = dest->header.w; in lv_draw_buf_copy()
226 else line_width = lv_area_get_width(dest_area); in lv_draw_buf_copy()
236 if((src_area == NULL && line_width != src->header.w) || \ in lv_draw_buf_copy()
237 (src_area != NULL && line_width != lv_area_get_width(src_area))) { in lv_draw_buf_copy()
261 uint32_t line_bytes = (line_width * lv_color_format_get_bpp(dest->header.cf) + 7) >> 3; in lv_draw_buf_copy()
/lvgl-latest/src/draw/nema_gfx/
Dlv_draw_nema_gfx_label.c426 int32_t line_width = 0; in _draw_label_iterate_characters() local
478line_width = lv_text_get_width_with_flags(&dsc->text[line_start], line_end - line_start, font, dsc… in _draw_label_iterate_characters()
481 pos.x += (lv_area_get_width(coords) - line_width) / 2; in _draw_label_iterate_characters()
486line_width = lv_text_get_width_with_flags(&dsc->text[line_start], line_end - line_start, font, dsc… in _draw_label_iterate_characters()
488 pos.x += lv_area_get_width(coords) - line_width; in _draw_label_iterate_characters()
721 line_width = in _draw_label_iterate_characters()
724 pos.x += (lv_area_get_width(coords) - line_width) / 2; in _draw_label_iterate_characters()
728 line_width = in _draw_label_iterate_characters()
730 pos.x += lv_area_get_width(coords) - line_width; in _draw_label_iterate_characters()
/lvgl-latest/src/widgets/line/
Dlv_line.c199 int32_t line_width = lv_obj_get_style_line_width(obj, LV_PART_MAIN); in lv_line_event() local
201 if(*s < line_width) *s = line_width; in lv_line_event()
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_textarea.c54 int32_t line_width = lv_obj_get_width(txt_ptr->label); in test_textarea_should_update_label_style_with_one_line_enabled() local
55 int32_t expected_size = left_padding + right_padding + line_width; in test_textarea_should_update_label_style_with_one_line_enabled()
/lvgl-latest/scripts/
DLVGLImage.py607 line_width = self.w * 4
614 for i in range(0, line_width, 4)
616 self.data[offset:offset + line_width] = processed
627 line_width = self.w * 2
639 for i in range(0, line_width, 2)
641 self.data[offset:offset + line_width] = processed
652 line_width = self.w * 3
659 for i in range(0, line_width, 3)
661 self.data[offset:offset + line_width] = processed
/lvgl-latest/src/widgets/chart/
Dlv_chart.c1302 int32_t line_width = lv_obj_get_style_line_width(obj, LV_PART_ITEMS); in invalidate_point() local
1307 coords.y1 -= line_width + point_w; in invalidate_point()
1308 coords.y2 += line_width + point_w; in invalidate_point()
1311 coords.x1 = ((w * i) / (chart->point_cnt - 1)) + x_ofs - line_width - point_w; in invalidate_point()
1312 coords.x2 = ((w * (i + 1)) / (chart->point_cnt - 1)) + x_ofs + line_width + point_w; in invalidate_point()
1317 coords.x1 = ((w * (i - 1)) / (chart->point_cnt - 1)) + x_ofs - line_width - point_w; in invalidate_point()
1318 coords.x2 = ((w * i) / (chart->point_cnt - 1)) + x_ofs + line_width + point_w; in invalidate_point()
/lvgl-latest/src/others/vg_lite_tvg/
Dvg_lite.h726 vg_lite_float_t line_width; member
1071 vg_lite_float_t line_width,
Dvg_lite_tvg.cpp894 vg_lite_float_t line_width, in vg_lite_set_stroke() argument
901 if(!path || line_width <= 0) { in vg_lite_set_stroke()
919 path->stroke->line_width = line_width; in vg_lite_set_stroke()
921 path->stroke->half_width = line_width / 2.0f; in vg_lite_set_stroke()
2361 TVG_CHECK_RETURN_RESULT(shape->stroke(path->stroke->line_width)); in shape_set_stroke()
/lvgl-latest/src/others/xml/
Dlv_xml_style.c185 else SET_STYLE_IF(line_width, lv_xml_atoi(value)); in lv_xml_style_register()
/lvgl-latest/src/others/xml/parsers/
Dlv_xml_obj_parser.c200 else SET_STYLE_IF(line_width, lv_xml_atoi(value)); in apply_styles()
/lvgl-latest/src/draw/vg_lite/
Dlv_vg_lite_utils.c351 LV_LOG_USER("line_width: %f", stroke->line_width); in lv_vg_lite_stroke_dump_info()
/lvgl-latest/docs/details/base-widget/styles/
Dstyle-properties.rst962 line_width subsection