Home
last modified time | relevance | path

Searched refs:width (Results 1 – 18 of 18) sorted by relevance

/lvgl-2.7.6/src/lv_misc/
Dlv_printf.c179 unsigned int width, unsigned int flags) in _out_rev() argument
186 for(i = len; i < width; i++) { in _out_rev()
198 while(idx - start_idx < width) { in _out_rev()
209 … bool negative, unsigned int base, unsigned int prec, unsigned int width, unsigned int flags) in _ntoa_format() argument
213 if(width && (flags & FLAGS_ZEROPAD) && (negative || (flags & (FLAGS_PLUS | FLAGS_SPACE)))) { in _ntoa_format()
214 width--; in _ntoa_format()
219 while((flags & FLAGS_ZEROPAD) && (len < width) && (len < PRINTF_NTOA_BUFFER_SIZE)) { in _ntoa_format()
226 if(!(flags & FLAGS_PRECISION) && len && ((len == prec) || (len == width))) { in _ntoa_format()
258 return _out_rev(out, buffer, idx, maxlen, buf, len, width, flags); in _ntoa_format()
264 … unsigned long base, unsigned int prec, unsigned int width, unsigned int flags) in _ntoa_long() argument
[all …]
Dlv_txt.c360 lv_coord_t width = 0; in _lv_txt_get_width() local
375 width += char_width; in _lv_txt_get_width()
376 width += letter_space; in _lv_txt_get_width()
380 if(width > 0) { in _lv_txt_get_width()
381 width -= letter_space; /*Trim the last letter space. Important if the text is center in _lv_txt_get_width()
386 return width; in _lv_txt_get_width()
/lvgl-2.7.6/src/lv_draw/
Dlv_draw_arc.c31 lv_coord_t width; member
75 if(dsc->width == 0) return; in lv_draw_arc()
78 lv_style_int_t width = dsc->width; in lv_draw_arc() local
79 if(width > radius) width = radius; in lv_draw_arc()
87 cir_dsc.border_width = width; in lv_draw_arc()
127 q_dsc.width = width; in lv_draw_arc()
150 get_rounded_area(start_angle, radius, width, &round_area); in lv_draw_arc()
160 get_rounded_area(end_angle, radius, width, &round_area); in lv_draw_arc()
181 …quarter_area.y1 = q->center_y + ((_lv_trigo_sin(q->start_angle) * (q->radius - q->width)) >> LV_TR… in draw_quarter_0()
185 …quarter_area.x1 = q->center_x + ((_lv_trigo_sin(q->end_angle + 90) * (q->radius - q->width)) >> LV… in draw_quarter_0()
[all …]
Dlv_draw_line.c52 dsc->width = 1; in lv_draw_line_dsc_init()
67 if(dsc->width == 0) return; in lv_draw_line()
73 clip_line.x1 = LV_MATH_MIN(point1->x, point2->x) - dsc->width / 2; in lv_draw_line()
74 clip_line.x2 = LV_MATH_MAX(point1->x, point2->x) + dsc->width / 2; in lv_draw_line()
75 clip_line.y1 = LV_MATH_MIN(point1->y, point2->y) - dsc->width / 2; in lv_draw_line()
76 clip_line.y2 = LV_MATH_MAX(point1->y, point2->y) + dsc->width / 2; in lv_draw_line()
94 int32_t r = (dsc->width >> 1); in lv_draw_line()
95 int32_t r_corr = (dsc->width & 1) ? 0 : 1; in lv_draw_line()
131 int32_t w = dsc->width - 1; in draw_line_hor()
232 int32_t w = dsc->width - 1; in draw_line_ver()
[all …]
Dlv_draw_line.h27 lv_style_int_t width; member
Dlv_draw_img.c284 int32_t width = lv_area_get_width(&mask_com); in lv_img_draw_core() local
301 read_res = lv_img_decoder_read_line(&cdsc->dec_dsc, x, y, width, buf); in lv_img_draw_core()
Dlv_draw_label.c223 line_dsc.width = font->underline_thickness ? font->underline_thickness : 1; in lv_draw_label()
337 p1.y = pos.y + (dsc->font->line_height / 2) + line_dsc.width / 2; in lv_draw_label()
/lvgl-2.7.6/src/lv_widgets/
Dlv_linemeter.c507 clip_sub.x1 = LV_MATH_MIN(x_in, x_out) - line_dsc.width; in lv_linemeter_draw_scale()
508 clip_sub.x2 = LV_MATH_MAX(x_in, x_out) + line_dsc.width; in lv_linemeter_draw_scale()
509 clip_sub.y1 = LV_MATH_MIN(y_in, y_out) - line_dsc.width; in lv_linemeter_draw_scale()
510 clip_sub.y2 = LV_MATH_MAX(y_in, y_out) + line_dsc.width; in lv_linemeter_draw_scale()
526 line_dsc.width = end_line_width; in lv_linemeter_draw_scale()
554 arc_dsc.width = border_width; in lv_linemeter_draw_scale()
560 arc_dsc.width = end_border_width; in lv_linemeter_draw_scale()
Dlv_btnmatrix.h163 void lv_btnmatrix_set_btn_width(lv_obj_t * btnm, uint16_t btn_id, uint8_t width);
Dlv_win.h140 void lv_win_set_btn_width(lv_obj_t * win, lv_coord_t width);
Dlv_chart.c877 p1.y = (int32_t)((int32_t)(h - line_dsc.width) * div_i) / (ext->hdiv_cnt + 1); in draw_series_bg()
898 p1.x = (int32_t)((int32_t)(w - line_dsc.width) * div_i) / (ext->vdiv_cnt + 1); in draw_series_bg()
960 if(point_radius > line_dsc.width / 2) line_dsc.raw_end = 1; in draw_series_line()
1309 y_ofs + (int32_t)((int32_t)(h - line_dsc.width) * i) / num_scale_ticks; in draw_y_ticks()
1455 p2.x = p1.x = x_ofs + (int32_t)((int32_t)(w - line_dsc.width) * i) / num_scale_ticks; in draw_x_ticks()
Dlv_cpicker.c486 line_dsc.width = (r * 628 / (360 / LV_CPICKER_DEF_QF)) / 100; in draw_disc_grad()
487 line_dsc.width += 2; in draw_disc_grad()
504 lv_coord_t cir_w_extra = cir_w + line_dsc.width; in draw_disc_grad()
Dlv_win.c287 void lv_win_set_btn_width(lv_obj_t * win, lv_coord_t width) in lv_win_set_btn_width() argument
292 ext->btn_w = width; in lv_win_set_btn_width()
Dlv_btnmatrix.c396 void lv_btnmatrix_set_btn_width(lv_obj_t * btnm, uint16_t btn_id, uint8_t width) in lv_btnmatrix_set_btn_width() argument
404 ext->ctrl_bits[btn_id] |= (LV_BTNMATRIX_WIDTH_MASK & width); in lv_btnmatrix_set_btn_width()
/lvgl-2.7.6/tests/
Dlv_test_assert.c38 int width, height; member
213 for (x=0; x<p.width; x++) { in lv_test_assert_img_eq()
276 p->width = png_get_image_width(p->png_ptr, p->info_ptr); in read_png_file()
/lvgl-2.7.6/
DCHANGELOG.md33 - Adjust button matrix button width to include padding when spanning multiple units.
37 - Fix drawing images with 1 px height or width
58 - Fix roller width if selected text is larger than the normal
88 - Do not print warning for missing glyph if its height OR width is zero.
/lvgl-2.7.6/src/lv_core/
Dlv_obj.c3554 draw_dsc->width = lv_obj_get_style_line_width(obj, part);
3555 if(draw_dsc->width == 0) return;
/lvgl-2.7.6/scripts/
DDoxyfile51 # pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
1455 # to set the initial width (in pixels) of the frame in which the tree is shown.