Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 42) sorted by relevance

12

/lvgl-2.7.6/src/lv_widgets/
Dlv_canvas.h72 void lv_canvas_set_buffer(lv_obj_t * canvas, void * buf, lv_coord_t w, lv_coord_t h, lv_img_cf_t cf…
129 …_canvas_copy_buf(lv_obj_t * canvas, const void * to_copy, lv_coord_t x, lv_coord_t y, lv_coord_t w,
186 void lv_canvas_draw_rect(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t w, lv_coord_t h,
250 #define LV_CANVAS_BUF_SIZE_TRUE_COLOR(w, h) LV_IMG_BUF_SIZE_TRUE_COLOR(w, h) argument
251 #define LV_CANVAS_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w, h) LV_IMG_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w,… argument
252 #define LV_CANVAS_BUF_SIZE_TRUE_COLOR_ALPHA(w, h) LV_IMG_BUF_SIZE_TRUE_COLOR_ALPHA(w, h) argument
255 #define LV_CANVAS_BUF_SIZE_ALPHA_1BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) argument
256 #define LV_CANVAS_BUF_SIZE_ALPHA_2BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h) argument
257 #define LV_CANVAS_BUF_SIZE_ALPHA_4BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h) argument
258 #define LV_CANVAS_BUF_SIZE_ALPHA_8BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_8BIT(w, h) argument
[all …]
Dlv_canvas.c97 ext->dsc.header.w = 0; in lv_canvas_create()
139 void lv_canvas_set_buffer(lv_obj_t * canvas, void * buf, lv_coord_t w, lv_coord_t h, lv_img_cf_t cf) in lv_canvas_set_buffer() argument
147 ext->dsc.header.w = w; in lv_canvas_set_buffer()
240 …uf(lv_obj_t * canvas, const void * to_copy, lv_coord_t x, lv_coord_t y, lv_coord_t w, lv_coord_t h) in lv_canvas_copy_buf() argument
246 if(x + w >= (lv_coord_t)ext->dsc.header.w || y + h >= (lv_coord_t)ext->dsc.header.h) { in lv_canvas_copy_buf()
252 uint32_t px = ext->dsc.header.w * y * px_size + x * px_size; in lv_canvas_copy_buf()
256 _lv_memcpy((void *)&ext->dsc.data[px], to_copy8, w * px_size); in lv_canvas_copy_buf()
257 px += ext->dsc.header.w * px_size; in lv_canvas_copy_buf()
258 to_copy8 += w * px_size; in lv_canvas_copy_buf()
288 int32_t dest_width = ext_dst->dsc.header.w; in lv_canvas_transform()
[all …]
Dlv_img.c82 ext->w = lv_obj_get_width(img); in lv_img_create()
216 header.w = size.x; in lv_img_set_src()
221 ext->w = header.w; in lv_img_set_src()
224 ext->pivot.x = header.w / 2; in lv_img_set_src()
228 lv_obj_set_size(img, ext->w, ext->h); in lv_img_set_src()
264 x = x % ext->w; in lv_img_set_offset_x()
306 lv_coord_t w = lv_obj_get_width(img); in lv_img_set_pivot() local
309 _lv_img_buf_get_transformed_area(&a, w, h, transf_angle, transf_zoom, &ext->pivot); in lv_img_set_pivot()
320 _lv_img_buf_get_transformed_area(&a, w, h, transf_angle, transf_zoom, &ext->pivot); in lv_img_set_pivot()
346 lv_coord_t w = lv_obj_get_width(img); in lv_img_set_angle() local
[all …]
Dlv_imgbtn.c336 lv_coord_t w = lv_obj_get_style_transform_width(imgbtn, LV_OBJ_PART_MAIN); in lv_imgbtn_design() local
340 coords.x1 -= w; in lv_imgbtn_design()
341 coords.x2 += w; in lv_imgbtn_design()
356 left_w = header.w; in lv_imgbtn_design()
359 coords_part.x2 = coords.x1 + header.w - 1; in lv_imgbtn_design()
367 right_w = header.w; in lv_imgbtn_design()
368 coords_part.x1 = coords.x2 - header.w + 1; in lv_imgbtn_design()
392 coords_part.x2 = coords_part.x1 + header.w - 1; in lv_imgbtn_design()
395 for(i = 0; i < obj_w - right_w - left_w; i += header.w) { in lv_imgbtn_design()
399 coords_part.x2 += header.w; in lv_imgbtn_design()
[all …]
Dlv_tileview.c104 lv_coord_t w; in lv_tileview_create() local
107 w = lv_obj_get_width_fit(lv_obj_get_parent(new_tileview)); in lv_tileview_create()
111 w = lv_disp_get_hor_res(NULL); in lv_tileview_create()
115 lv_obj_set_size(new_tileview, w, h); in lv_tileview_create()
360 lv_coord_t w = lv_obj_get_width(tileview); in lv_tileview_scrl_signal() local
372 … if(!ext->drag_left_en && x > -(ext->act_id.x * w) && indev->proc.types.pointer.vect.x > 0) { in lv_tileview_scrl_signal()
374 lv_obj_set_x(scrl, -ext->act_id.x * w + left); in lv_tileview_scrl_signal()
377 … if(!ext->drag_right_en && indev->proc.types.pointer.vect.x < 0 && x < -(ext->act_id.x * w)) { in lv_tileview_scrl_signal()
379 lv_obj_set_x(scrl, -ext->act_id.x * w + left); in lv_tileview_scrl_signal()
Dlv_chart.c854 lv_coord_t w = lv_area_get_width(series_area); in draw_series_bg() local
875 p2.x = w - 1 + x_ofs; 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()
920 lv_coord_t w = lv_area_get_width(series_area); in draw_series_line() local
984 p2.x = ((w * i) / (ext->point_cnt - 1)) + x_ofs; in draw_series_line()
1072 lv_coord_t w = lv_area_get_width(series_area); in draw_series_column() local
1076 …lv_coord_t col_w = w / ((_lv_ll_get_len(&ext->series_ll) + 1) * ext->point_cnt); /* Suppose + 1 se… in draw_series_column()
1095 lv_coord_t x_act = (int32_t)((int32_t)w * i) / ext->point_cnt; in draw_series_column()
1252 lv_coord_t w = lv_area_get_width(series_area); in draw_y_ticks() local
1263 major_tick_len = (int32_t)w * LV_CHART_AXIS_MAJOR_TICK_LEN_COE; in draw_y_ticks()
[all …]
Dlv_cpicker.c476 lv_coord_t w = lv_obj_get_width(cpicker); in draw_disc_grad() local
478 lv_coord_t cx = cpicker->coords.x1 + w / 2; in draw_disc_grad()
480 lv_coord_t r = w / 2; in draw_disc_grad()
799 uint16_t w = lv_obj_get_width(cpicker); in lv_cpicker_signal() local
812 angle = (p.x * 360) / w; in lv_cpicker_signal()
820 lv_coord_t r_in = w / 2; in lv_cpicker_signal()
935 lv_coord_t w = lv_obj_get_width(cpicker); in refr_knob_pos() local
942 ind_pos += (ext->hsv.h * w) / 360; in refr_knob_pos()
945 ind_pos += (ext->hsv.s * w) / 100; in refr_knob_pos()
948 ind_pos += (ext->hsv.v * w) / 100; in refr_knob_pos()
[all …]
Dlv_win.c102 lv_coord_t w; in lv_win_create() local
105 w = lv_obj_get_width_fit(lv_obj_get_parent(new_win)); in lv_win_create()
109 w = lv_disp_get_hor_res(NULL); in lv_win_create()
113 lv_obj_set_size(new_win, w, h); in lv_win_create()
303 void lv_win_set_content_size(lv_obj_t * win, lv_coord_t w, lv_coord_t h) in lv_win_set_content_size() argument
310 lv_obj_set_size(win, w, h); in lv_win_set_content_size()
Dlv_page.h207 static inline void lv_page_set_scrl_width(lv_obj_t * page, lv_coord_t w) in lv_page_set_scrl_width() argument
209 lv_obj_set_width(lv_page_get_scrollable(page), w); in lv_page_set_scrl_width()
Dlv_cont.c519 lv_coord_t w = lv_obj_get_width(child_rc); in lv_cont_layout_pretty() local
520 w += lv_obj_get_style_margin_left(child_rc, LV_OBJ_PART_MAIN); in lv_cont_layout_pretty()
521 w += lv_obj_get_style_margin_right(child_rc, LV_OBJ_PART_MAIN); in lv_cont_layout_pretty()
522 if(w_row + w > w_obj) { in lv_cont_layout_pretty()
530 w_row += w + pinner; /*Add the object width + inner padding*/ in lv_cont_layout_pretty()
Dlv_table.c269 void lv_table_set_col_width(lv_obj_t * table, uint16_t col_id, lv_coord_t w) in lv_table_set_col_width() argument
279 ext->col_w[col_id] = w; in lv_table_set_col_width()
978 lv_coord_t w = 0; in refr_size() local
982 lv_obj_set_size(table, w, h); in refr_size()
988 w += ext->col_w[i]; in refr_size()
1021 w += bg_left + bg_right; in refr_size()
1024 lv_obj_set_size(table, w + 1, h + 1); in refr_size()
/lvgl-2.7.6/src/lv_draw/
Dlv_img_buf.h33 #define LV_IMG_BUF_SIZE_TRUE_COLOR(w, h) ((LV_COLOR_SIZE / 8) * w * h) argument
34 #define LV_IMG_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w, h) ((LV_COLOR_SIZE / 8) * w * h) argument
35 #define LV_IMG_BUF_SIZE_TRUE_COLOR_ALPHA(w, h) (LV_IMG_PX_SIZE_ALPHA_BYTE * w * h) argument
38 #define LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) ((((w / 8) + 1) * h)) argument
39 #define LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h) ((((w / 4) + 1) * h)) argument
40 #define LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h) ((((w / 2) + 1) * h)) argument
41 #define LV_IMG_BUF_SIZE_ALPHA_8BIT(w, h) ((w * h)) argument
44 #define LV_IMG_BUF_SIZE_INDEXED_1BIT(w, h) (LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) + 4 * 2) argument
45 #define LV_IMG_BUF_SIZE_INDEXED_2BIT(w, h) (LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h) + 4 * 4) argument
46 #define LV_IMG_BUF_SIZE_INDEXED_4BIT(w, h) (LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h) + 4 * 16) argument
[all …]
Dlv_img_decoder.c93 header->w = 0; in lv_img_decoder_get_info()
274 header->w = ((lv_img_dsc_t *)src)->header.w; in lv_img_decoder_built_in_info()
300 header->w = 1; in lv_img_decoder_built_in_info()
553 uint32_t pos = ((y * dsc->header.w + x) * px_size) >> 3; in lv_img_decoder_built_in_line_true_color()
612 lv_coord_t w = 0; in lv_img_decoder_built_in_line_alpha() local
617 w = (dsc->header.w >> 3); /*E.g. w = 20 -> w = 2 + 1*/ in lv_img_decoder_built_in_line_alpha()
618 if(dsc->header.w & 0x7) w++; in lv_img_decoder_built_in_line_alpha()
619 ofs += w * y + (x >> 3); /*First pixel*/ in lv_img_decoder_built_in_line_alpha()
624 w = (dsc->header.w >> 2); /*E.g. w = 13 -> w = 3 + 1 (bytes)*/ in lv_img_decoder_built_in_line_alpha()
625 if(dsc->header.w & 0x3) w++; in lv_img_decoder_built_in_line_alpha()
[all …]
Dlv_img_buf.c60 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_get_px_color()
74 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_color()
85 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_color()
96 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_get_px_color()
101 uint32_t px = dsc->header.w * y + x; in lv_img_buf_get_px_color()
124 uint32_t px = dsc->header.w * y * LV_IMG_PX_SIZE_ALPHA_BYTE + x * LV_IMG_PX_SIZE_ALPHA_BYTE; in lv_img_buf_get_px_alpha()
134 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_alpha()
147 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_alpha()
162 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_get_px_alpha()
167 uint32_t px = dsc->header.w * y + x; in lv_img_buf_get_px_alpha()
[all …]
Dlv_draw_line.c131 int32_t w = dsc->width - 1; in draw_line_hor() local
132 int32_t w_half0 = w >> 1; in draw_line_hor()
133 int32_t w_half1 = w_half0 + (w & 0x1); /*Compensate rounding error*/ in draw_line_hor()
232 int32_t w = dsc->width - 1; in draw_line_ver() local
233 int32_t w_half0 = w >> 1; in draw_line_ver()
234 int32_t w_half1 = w_half0 + (w & 0x1); /*Compensate rounding error*/ in draw_line_ver()
348 int32_t w = dsc->width; in draw_line_skew() local
353 w = (w * wcorr[wcorr_i] + 63) >> 7; /*+ 63 for rounding*/ in draw_line_skew()
354 int32_t w_half0 = w >> 1; in draw_line_skew()
355 int32_t w_half1 = w_half0 + (w & 0x1); /*Compensate rounding error*/ in draw_line_skew()
[all …]
Dlv_draw_rect.c653 lv_coord_t w = lv_area_get_width(&ca); in draw_shadow() local
654 if(w > 0) { in draw_shadow()
663 _lv_memcpy(mask_buf, sh_buf_tmp, w); in draw_shadow()
664 mask_res = lv_draw_mask_apply(mask_buf, fa.x1, fa.y1, w); in draw_shadow()
689 lv_coord_t w = lv_area_get_width(&ca); in draw_shadow() local
691 if(w > 0) { in draw_shadow()
700 _lv_memcpy(mask_buf, sh_buf_tmp, w); in draw_shadow()
701 mask_res = lv_draw_mask_apply(mask_buf, fa.x1, fa.y1, w); in draw_shadow()
723 lv_coord_t w = lv_area_get_width(&ca); in draw_shadow() local
724 if(w > 0) { in draw_shadow()
[all …]
Dlv_draw_label.c122 int32_t w; in lv_draw_label() local
134 w = lv_area_get_width(coords); in lv_draw_label()
141 w = p.x; in lv_draw_label()
177 …_end = line_start + _lv_txt_get_next_line(&txt[line_start], font, dsc->letter_space, w, dsc->flag); in lv_draw_label()
183 line_end += _lv_txt_get_next_line(&txt[line_start], font, dsc->letter_space, w, dsc->flag); in lv_draw_label()
359 line_end += _lv_txt_get_next_line(&txt[line_start], font, dsc->letter_space, w, dsc->flag); in lv_draw_label()
/lvgl-2.7.6/src/lv_hal/
Dlv_hal_disp.c305 uint32_t w; in lv_disp_get_size_category() local
306 if(disp == NULL) w = LV_HOR_RES_MAX; in lv_disp_get_size_category()
307 else w = lv_disp_get_hor_res(disp); in lv_disp_get_size_category()
311 w = w * 10 / dpi; in lv_disp_get_size_category()
313 if(w < LV_DISP_SMALL_LIMIT) return LV_DISP_SIZE_SMALL; in lv_disp_get_size_category()
314 if(w < LV_DISP_MEDIUM_LIMIT) return LV_DISP_SIZE_MEDIUM; in lv_disp_get_size_category()
315 if(w < LV_DISP_LARGE_LIMIT) return LV_DISP_SIZE_LARGE; in lv_disp_get_size_category()
/lvgl-2.7.6/src/lv_font/
Dlv_font_fmt_txt.c46 static void decompress(const uint8_t * in, uint8_t * out, lv_coord_t w, lv_coord_t h, uint8_t bpp, …
47 static inline void decompress_line(uint8_t * out, lv_coord_t w);
354 static void decompress(const uint8_t * in, uint8_t * out, lv_coord_t w, lv_coord_t h, uint8_t bpp, … in decompress() argument
362 uint8_t * line_buf1 = _lv_mem_buf_get(w); in decompress()
367 line_buf2 = _lv_mem_buf_get(w); in decompress()
370 decompress_line(line_buf1, w); in decompress()
375 for(x = 0; x < w; x++) { in decompress()
382 decompress_line(line_buf2, w); in decompress()
384 for(x = 0; x < w; x++) { in decompress()
391 decompress_line(line_buf1, w); in decompress()
[all …]
/lvgl-2.7.6/src/lv_misc/
Dlv_area.c61 void lv_area_set_width(lv_area_t * area_p, lv_coord_t w) in lv_area_set_width() argument
63 area_p->x2 = area_p->x1 + w - 1; in lv_area_set_width()
84 lv_coord_t w = lv_area_get_width(area_p); in _lv_area_set_pos() local
88 lv_area_set_width(area_p, w); in _lv_area_set_pos()
164 lv_coord_t w = lv_area_get_width(a_p) / 2; in _lv_area_is_point_on() local
166 lv_coord_t max_radius = LV_MATH_MIN(w, h); in _lv_area_is_point_on()
Dlv_printf.c631 const int w = va_arg(va, int); in _vsnprintf() local
632 if(w < 0) { in _vsnprintf()
634 width = (unsigned int) - w; in _vsnprintf()
637 width = (unsigned int)w; in _vsnprintf()
/lvgl-2.7.6/examples/
DLVGL_Arduino.ino21 uint32_t w = (area->x2 - area->x1 + 1);
25 tft.setAddrWindow(area->x1, area->y1, w, h);
26 tft.pushColors(&color_p->full, w * h, true);
/lvgl-2.7.6/src/
Dlv_api_map.h142 static inline void lv_roller_set_fix_width(lv_obj_t * roller, lv_coord_t w) in lv_roller_set_fix_width() argument
145 lv_obj_set_width(roller, w); in lv_roller_set_fix_width()
/lvgl-2.7.6/src/lv_core/
Dlv_obj.c838 void lv_obj_set_size(lv_obj_t * obj, lv_coord_t w, lv_coord_t h) in lv_obj_set_size() argument
845 if(lv_obj_get_width(obj) == w && lv_obj_get_height(obj) == h) { in lv_obj_set_size()
859 obj->coords.x1 = obj->coords.x2 - w + 1; in lv_obj_set_size()
862 obj->coords.x2 = obj->coords.x1 + w - 1; in lv_obj_set_size()
892 void lv_obj_set_width(lv_obj_t * obj, lv_coord_t w) in lv_obj_set_width() argument
896 lv_obj_set_size(obj, w, lv_obj_get_height(obj)); in lv_obj_set_width()
916 void lv_obj_set_width_fit(lv_obj_t * obj, lv_coord_t w) in lv_obj_set_width_fit() argument
921 lv_obj_set_width(obj, w - pleft - pright); in lv_obj_set_width_fit()
943 void lv_obj_set_width_margin(lv_obj_t * obj, lv_coord_t w) in lv_obj_set_width_margin() argument
948 lv_obj_set_width(obj, w - mleft - mright); in lv_obj_set_width_margin()
[all …]
Dlv_obj.h432 void lv_obj_set_size(lv_obj_t * obj, lv_coord_t w, lv_coord_t h);
439 void lv_obj_set_width(lv_obj_t * obj, lv_coord_t w);
453 void lv_obj_set_width_fit(lv_obj_t * obj, lv_coord_t w);
468 void lv_obj_set_width_margin(lv_obj_t * obj, lv_coord_t w);

12