Home
last modified time | relevance | path

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

1234567

/lvgl-latest/src/draw/
Dlv_img_buf.h32 #define LV_IMG_BUF_SIZE_TRUE_COLOR(w, h) ((LV_COLOR_SIZE / 8) * w * h) argument
33 #define LV_IMG_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w, h) ((LV_COLOR_SIZE / 8) * w * h) argument
34 #define LV_IMG_BUF_SIZE_TRUE_COLOR_ALPHA(w, h) (LV_IMG_PX_SIZE_ALPHA_BYTE * w * h) argument
37 #define LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) ((((w / 8) + 1) * h)) argument
38 #define LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h) ((((w / 4) + 1) * h)) argument
39 #define LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h) ((((w / 2) + 1) * h)) argument
40 #define LV_IMG_BUF_SIZE_ALPHA_8BIT(w, h) ((w * h)) argument
43 #define LV_IMG_BUF_SIZE_INDEXED_1BIT(w, h) (LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) + 4 * 2) argument
44 #define LV_IMG_BUF_SIZE_INDEXED_2BIT(w, h) (LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h) + 4 * 4) argument
45 #define LV_IMG_BUF_SIZE_INDEXED_4BIT(w, h) (LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h) + 4 * 16) argument
[all …]
Dlv_img_buf.c49 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_get_px_color()
63 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_color()
74 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_color()
85 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_get_px_color()
90 uint32_t px = dsc->header.w * y + x; in lv_img_buf_get_px_color()
105 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()
115 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_alpha()
128 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_alpha()
143 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_get_px_alpha()
148 uint32_t px = dsc->header.w * y + x; in lv_img_buf_get_px_alpha()
[all …]
Dlv_img_decoder.c282 header->w = ((lv_img_dsc_t *)src)->header.w; in lv_img_decoder_built_in_info()
307 header->w = 1; in lv_img_decoder_built_in_info()
373 uint32_t len = dsc->header.w * dsc->header.h; in lv_img_decoder_built_in_open()
544 uint32_t pos = ((y * dsc->header.w + x) * px_size) >> 3; in lv_img_decoder_built_in_line_true_color()
592 lv_coord_t w = 0; in lv_img_decoder_built_in_line_alpha() local
597 w = (dsc->header.w + 7) >> 3; /*E.g. w = 20 -> w = 2 + 1*/ in lv_img_decoder_built_in_line_alpha()
598 ofs += w * y + (x >> 3); /*First pixel*/ in lv_img_decoder_built_in_line_alpha()
603 w = (dsc->header.w + 3) >> 2; /*E.g. w = 13 -> w = 3 + 1 (bytes)*/ in lv_img_decoder_built_in_line_alpha()
604 ofs += w * y + (x >> 2); /*First pixel*/ in lv_img_decoder_built_in_line_alpha()
609 w = (dsc->header.w + 1) >> 1; /*E.g. w = 13 -> w = 6 + 1 (bytes)*/ in lv_img_decoder_built_in_line_alpha()
[all …]
/lvgl-latest/src/widgets/
Dlv_canvas.h66 void lv_canvas_set_buffer(lv_obj_t * canvas, void * buf, lv_coord_t w, lv_coord_t h, lv_img_cf_t cf…
140 …_canvas_copy_buf(lv_obj_t * canvas, const void * to_copy, lv_coord_t x, lv_coord_t y, lv_coord_t w,
195 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,
257 #define LV_CANVAS_BUF_SIZE_TRUE_COLOR(w, h) LV_IMG_BUF_SIZE_TRUE_COLOR(w, h) argument
258 #define LV_CANVAS_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w, h) LV_IMG_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w,… argument
259 #define LV_CANVAS_BUF_SIZE_TRUE_COLOR_ALPHA(w, h) LV_IMG_BUF_SIZE_TRUE_COLOR_ALPHA(w, h) argument
262 #define LV_CANVAS_BUF_SIZE_ALPHA_1BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) argument
263 #define LV_CANVAS_BUF_SIZE_ALPHA_2BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h) argument
264 #define LV_CANVAS_BUF_SIZE_ALPHA_4BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h) argument
265 #define LV_CANVAS_BUF_SIZE_ALPHA_8BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_8BIT(w, h) argument
[all …]
Dlv_canvas.c66 void lv_canvas_set_buffer(lv_obj_t * obj, void * buf, lv_coord_t w, lv_coord_t h, lv_img_cf_t cf) in lv_canvas_set_buffer() argument
74 canvas->dsc.header.w = w; in lv_canvas_set_buffer()
138 …y_buf(lv_obj_t * obj, 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
145 …if(x + w - 1 >= (lv_coord_t)canvas->dsc.header.w || y + h - 1 >= (lv_coord_t)canvas->dsc.header.h)… in lv_canvas_copy_buf()
151 uint32_t px = canvas->dsc.header.w * y * px_size + x * px_size; in lv_canvas_copy_buf()
155 lv_memcpy((void *)&canvas->dsc.data[px], to_copy8, w * px_size); in lv_canvas_copy_buf()
156 px += canvas->dsc.header.w * px_size; in lv_canvas_copy_buf()
157 to_copy8 += w * px_size; in lv_canvas_copy_buf()
185 dest_area.x2 = dest_area.x1 + dest_img->header.w - 1; in lv_canvas_transform()
189 lv_color_t * cbuf = lv_mem_alloc(dest_img->header.w * sizeof(lv_color_t)); in lv_canvas_transform()
[all …]
Dlv_img.c144 header.w = size.x; in lv_img_set_src()
149 img->w = header.w; in lv_img_set_src()
152 img->pivot.x = header.w / 2; in lv_img_set_src()
192 lv_coord_t w = lv_obj_get_width(obj); in lv_img_set_angle() local
195 _lv_img_buf_get_transformed_area(&a, w, h, img->angle, img->zoom, &img->pivot); in lv_img_set_angle()
211 _lv_img_buf_get_transformed_area(&a, w, h, img->angle, img->zoom, &img->pivot); in lv_img_set_angle()
225 lv_coord_t w = lv_obj_get_width(obj); in lv_img_set_pivot() local
228 _lv_img_buf_get_transformed_area(&a, w, h, img->angle, img->zoom, &img->pivot); in lv_img_set_pivot()
245 _lv_img_buf_get_transformed_area(&a, w, h, img->angle, img->zoom, &img->pivot); in lv_img_set_pivot()
261 lv_coord_t w = lv_obj_get_width(obj); in lv_img_set_zoom() local
[all …]
Dlv_line.c149 lv_coord_t w = 0; in lv_line_event() local
154 w = LV_MAX(line->point_array[i].x, w); in lv_line_event()
159 w += line_width; in lv_line_event()
161 p->x = w; in lv_line_event()
/lvgl-latest/src/draw/sdl/
Dlv_draw_sdl_mask.c48 lv_coord_t w = lv_area_get_width(coords), h = lv_area_get_height(coords); in lv_draw_sdl_mask_dump_opa() local
49 lv_opa_t * mask_buf = lv_mem_buf_get(w * h); in lv_draw_sdl_mask_dump_opa()
51 lv_opa_t * line_buf = &mask_buf[y * w]; in lv_draw_sdl_mask_dump_opa()
52 lv_memset_ff(line_buf, w); in lv_draw_sdl_mask_dump_opa()
53 …oord_t abs_x = (lv_coord_t) coords->x1, abs_y = (lv_coord_t)(y + coords->y1), len = (lv_coord_t) w; in lv_draw_sdl_mask_dump_opa()
62 lv_memset_00(line_buf, w); in lv_draw_sdl_mask_dump_opa()
71 lv_coord_t w = lv_area_get_width(coords), h = lv_area_get_height(coords); in lv_draw_sdl_mask_dump_texture() local
73 SDL_Surface * surface = lv_sdl_create_opa_surface(mask_buf, w, h, w); in lv_draw_sdl_mask_dump_texture()
Dlv_draw_sdl_polygon.c79 lv_coord_t w = lv_area_get_width(&draw_area), h = lv_area_get_height(&draw_area); in lv_draw_sdl_polygon() local
81 …texture = lv_draw_sdl_composite_texture_obtain(ctx, LV_DRAW_SDL_COMPOSITE_TEXTURE_ID_STREAM1, w, h, in lv_draw_sdl_polygon()
89 SDL_Rect srcrect = {0, 0, w, h}, dstrect; in lv_draw_sdl_polygon()
108 lv_coord_t w = lv_area_get_width(coords), h = lv_area_get_height(coords); in dump_masks() local
109 SDL_assert(w > 0 && h > 0); in dump_masks()
110 SDL_Rect rect = {0, 0, w, h}; in dump_masks()
115 lv_opa_t * line_buf = lv_mem_buf_get(rect.w); in dump_masks()
117 lv_memset_ff(line_buf, rect.w); in dump_masks()
118 …t abs_x = (lv_coord_t) coords->x1, abs_y = (lv_coord_t)(y + coords->y1), len = (lv_coord_t) rect.w; in dump_masks()
122 lv_memset_00(&pixels[y * pitch], 4 * rect.w); in dump_masks()
[all …]
Dlv_draw_sdl_stack_blur.c25 stack_blur_job(lv_opa_t * src, unsigned int w, unsigned int h, unsigned int radius, int cores, int …
81 void lv_stack_blur_grayscale(lv_opa_t * buf, uint16_t w, uint16_t h, uint16_t r) in lv_stack_blur_grayscale() argument
83 stack_blur_job(buf, w, h, r, 1, 0, 1); in lv_stack_blur_grayscale()
84 stack_blur_job(buf, w, h, r, 1, 0, 2); in lv_stack_blur_grayscale()
91 static void stack_blur_job(lv_opa_t * src, unsigned int w, unsigned int h, unsigned int radius, int… in stack_blur_job() argument
111 unsigned int wm = w - 1; in stack_blur_job()
113 unsigned int stride = w; in stack_blur_job()
148 src_ptr = src + (xp + y * w); // img.pix_ptr(xp, y); in stack_blur_job()
150 for(x = 0; x < w; x++) { in stack_blur_job()
185 unsigned int minX = core * w / cores; in stack_blur_job()
[all …]
Dlv_draw_sdl_img.c38 lv_coord_t w, h, radius; member
75 … const lv_draw_sdl_img_header_t * header, int w, int h, lv_coord_t radius,
78 static lv_draw_img_rounded_key_t rounded_key_create(const SDL_Texture * texture, lv_coord_t w, lv_c…
170 double x = 0, y = 0, w, h; in calc_draw_part() local
175 w = tw; in calc_draw_part()
181 w = header->rect.w; in calc_draw_part()
193 clipped_src->x = (int)(x + (clipped_dst->x - coords->x1) * w / coords_w); in calc_draw_part()
195 clipped_src->w = (int)(w - (coords_w - clipped_dst->w) * w / coords_w); in calc_draw_part()
251 int w = (int) dsc->header.w; in upload_img_texture() local
260 …SDL_Surface * surface = SDL_CreateRGBSurfaceFrom(data, w, h, LV_COLOR_DEPTH, w * LV_COLOR_DEPTH / … in upload_img_texture()
[all …]
Dlv_draw_sdl_arc.c105 lv_coord_t w = lv_area_get_width(&draw_area), h = lv_area_get_height(&draw_area); in lv_draw_sdl_draw_arc() local
107 …texture = lv_draw_sdl_composite_texture_obtain(ctx, LV_DRAW_SDL_COMPOSITE_TEXTURE_ID_STREAM1, w, h, in lv_draw_sdl_draw_arc()
132 SDL_Rect srcrect = {0, 0, w, h}, dstrect; in lv_draw_sdl_draw_arc()
153 lv_coord_t w = lv_area_get_width(coords), h = lv_area_get_height(coords); in dump_masks() local
154 SDL_assert(w > 0 && h > 0); in dump_masks()
155 SDL_Rect rect = {0, 0, w, h}; in dump_masks()
160 lv_opa_t * line_buf = lv_mem_buf_get(rect.w); in dump_masks()
162 lv_memset_ff(line_buf, rect.w); in dump_masks()
163 …t abs_x = (lv_coord_t) coords->x1, abs_y = (lv_coord_t)(y + coords->y1), len = (lv_coord_t) rect.w; in dump_masks()
167 lv_memset_00(&pixels[y * pitch], 4 * rect.w); in dump_masks()
[all …]
Dlv_draw_sdl_composite.c88 lv_coord_t w = lv_area_get_width(apply_area), h = lv_area_get_height(apply_area); in lv_draw_sdl_composite_begin() local
89 …osition = lv_draw_sdl_composite_texture_obtain(ctx, LV_DRAW_SDL_COMPOSITE_TEXTURE_ID_TARGET0, w, h, in lv_draw_sdl_composite_begin()
104 …s->mask = lv_draw_sdl_composite_texture_obtain(ctx, LV_DRAW_SDL_COMPOSITE_TEXTURE_ID_STREAM0, w, h, in lv_draw_sdl_composite_begin()
189 … lv_coord_t w, lv_coord_t h, bool * texture_in_cache) in lv_draw_sdl_composite_texture_obtain() argument
195 if(result == NULL || tex_size->x < w || tex_size->y < h) { in lv_draw_sdl_composite_texture_obtain()
196 lv_coord_t size = next_pow_of_2(LV_MAX(w, h)); in lv_draw_sdl_composite_texture_obtain()
248 lv_coord_t w = lv_area_get_width(coords), h = lv_area_get_height(coords); in dump_masks() local
249 SDL_assert(w > 0 && h > 0); in dump_masks()
250 SDL_Rect rect = {0, 0, w, h}; in dump_masks()
255 lv_opa_t * line_buf = lv_mem_buf_get(rect.w); in dump_masks()
[all …]
/lvgl-latest/src/extra/libs/png/
Dlodepng.h131 unsigned lodepng_decode_memory(unsigned char** out, unsigned* w, unsigned* h,
136 unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h,
140 unsigned lodepng_decode24(unsigned char** out, unsigned* w, unsigned* h,
148 unsigned lodepng_decode_file(unsigned char** out, unsigned* w, unsigned* h,
153 unsigned lodepng_decode32_file(unsigned char** out, unsigned* w, unsigned* h,
157 unsigned lodepng_decode24_file(unsigned char** out, unsigned* w, unsigned* h,
181 const unsigned char* image, unsigned w, unsigned h,
186 const unsigned char* image, unsigned w, unsigned h);
190 const unsigned char* image, unsigned w, unsigned h);
199 const unsigned char* image, unsigned w, unsigned h,
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_dither.h37 … (*lv_dither_func_t)(struct _lv_gradient_cache_t * grad, lv_coord_t x, lv_coord_t y, lv_coord_t w);
47 lv_coord_t w);
50 const lv_coord_t y, const lv_coord_t w);
52 const lv_coord_t y, const lv_coord_t w);
56 const lv_coord_t y, const lv_coord_t w);
58 const lv_coord_t y, const lv_coord_t w);
Dlv_draw_sw_gradient.c43 static lv_grad_t * allocate_item(const lv_grad_dsc_t * g, lv_coord_t w, lv_coord_t h);
48 static uint32_t compute_key(const lv_grad_dsc_t * g, lv_coord_t w, lv_coord_t h);
64 static uint32_t compute_key(const lv_grad_dsc_t * g, lv_coord_t size, lv_coord_t w) in compute_key() argument
68 …return (v.value ^ size ^ (w >> 1)); /*Yes, this is correct, it's like a hash that changes if the w… in compute_key()
77 s += ALIGN(c->w * sizeof(lv_scolor24_t)); in get_cache_item_size()
157 static lv_grad_t * allocate_item(const lv_grad_dsc_t * g, lv_coord_t w, lv_coord_t h) in allocate_item() argument
159 lv_coord_t size = g->dir == LV_GRAD_DIR_HOR ? w : h; in allocate_item()
160 lv_coord_t map_size = LV_MAX(w, h); /* The map is being used horizontally (width) unless in allocate_item()
167 req_size += ALIGN(w * sizeof(lv_scolor24_t)); in allocate_item()
198 item->key = compute_key(g, size, w); in allocate_item()
[all …]
Dlv_draw_sw_blend.c226 int32_t w = lv_area_get_width(blend_area); in fill_set_px() local
230 for(x = 0; x < w; x++) { in fill_set_px()
246 int32_t w = lv_area_get_width(dest_area); in fill_normal() local
256 lv_color_fill(dest_buf, color, w); in fill_normal()
278 for(x = 0; x < w; x++) { in fill_normal()
296 int32_t x_end4 = w - 4; in fill_normal()
298 for(x = 0; x < w && ((lv_uintptr_t)(mask) & 0x3); x++) { in fill_normal()
338 for(; x < w ; x++) { in fill_normal()
341 dest_buf += (dest_stride - w); in fill_normal()
342 mask += (mask_stride - w); in fill_normal()
[all …]
Dlv_draw_sw_dither.c19 …id LV_ATTRIBUTE_FAST_MEM lv_dither_none(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_coord_t w) in lv_dither_none() argument
24 for(lv_coord_t i = 0; i < w; i++) { in lv_dither_none()
41 …TTRIBUTE_FAST_MEM lv_dither_ordered_hor(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_coord_t w) in lv_dither_ordered_hor() argument
53 for(lv_coord_t j = 0; j < w; j++) { in lv_dither_ordered_hor()
65 …TTRIBUTE_FAST_MEM lv_dither_ordered_ver(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_coord_t w) in lv_dither_ordered_ver() argument
90 for(; j < w - 8; j += 8) { in lv_dither_ordered_ver()
94 for(; j < w; j++) { in lv_dither_ordered_ver()
100 …RIBUTE_FAST_MEM lv_dither_err_diff_hor(lv_grad_t * grad, lv_coord_t xs, lv_coord_t y, lv_coord_t w) in lv_dither_err_diff_hor() argument
104 LV_UNUSED(w); in lv_dither_err_diff_hor()
154 …RIBUTE_FAST_MEM lv_dither_err_diff_ver(lv_grad_t * grad, lv_coord_t xs, lv_coord_t y, lv_coord_t w) in lv_dither_err_diff_ver() argument
[all …]
Dlv_draw_sw_line.c114 int32_t w = dsc->width - 1; in draw_line_hor() local
115 int32_t w_half0 = w >> 1; in draw_line_hor()
116 int32_t w_half1 = w_half0 + (w & 0x1); /*Compensate rounding error*/ in draw_line_hor()
200 int32_t w = dsc->width - 1; in draw_line_ver() local
201 int32_t w_half0 = w >> 1; in draw_line_ver()
202 int32_t w_half1 = w_half0 + (w & 0x1); /*Compensate rounding error*/ in draw_line_ver()
309 int32_t w = dsc->width; in draw_line_skew() local
314 w = (w * wcorr[wcorr_i] + 63) >> 7; /*+ 63 for rounding*/ in draw_line_skew()
315 int32_t w_half0 = w >> 1; in draw_line_skew()
316 int32_t w_half1 = w_half0 + (w & 0x1); /*Compensate rounding error*/ in draw_line_skew()
[all …]
/lvgl-latest/examples/widgets/canvas/
Dlv_example_canvas_2.py5 def LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h): argument
6 return int(((w / 8) + 1) * h)
8 def LV_IMG_BUF_SIZE_INDEXED_1BIT(w, h): argument
9 return LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) + 4 * 2
11 def LV_CANVAS_BUF_SIZE_INDEXED_1BIT(w, h): argument
12 return LV_IMG_BUF_SIZE_INDEXED_1BIT(w, h)
/lvgl-latest/src/extra/others/snapshot/
Dlv_snapshot.c64 lv_coord_t w = lv_obj_get_width(obj); in lv_snapshot_buf_size_needed() local
67 w += ext_size * 2; in lv_snapshot_buf_size_needed()
71 return w * h * ((px_size + 7) >> 3); in lv_snapshot_buf_size_needed()
106 lv_coord_t w = lv_obj_get_width(obj); in lv_snapshot_take_to_buf() local
109 w += ext_size * 2; in lv_snapshot_take_to_buf()
152 dsc->header.w = w; in lv_snapshot_take_to_buf()
/lvgl-latest/src/extra/widgets/tileview/
Dlv_tileview.c95 lv_coord_t w = lv_obj_get_content_width(tv); in lv_obj_set_tile_id() local
98 lv_coord_t tx = col_id * w; in lv_obj_set_tile_id()
166 lv_coord_t w = lv_obj_get_content_width(obj); in tileview_event_cb() local
174 lv_coord_t tx = ((left + (w / 2)) / w) * w; in tileview_event_cb()
/lvgl-latest/src/font/
Dlv_font_fmt_txt.c41 …static void decompress(const uint8_t * in, uint8_t * out, lv_coord_t w, lv_coord_t h, uint8_t bpp,…
42 static inline void decompress_line(uint8_t * out, lv_coord_t w);
356 static void decompress(const uint8_t * in, uint8_t * out, lv_coord_t w, lv_coord_t h, uint8_t bpp, … in decompress() argument
364 uint8_t * line_buf1 = lv_mem_buf_get(w); in decompress()
369 line_buf2 = lv_mem_buf_get(w); in decompress()
372 decompress_line(line_buf1, w); in decompress()
377 for(x = 0; x < w; x++) { in decompress()
384 decompress_line(line_buf2, w); in decompress()
386 for(x = 0; x < w; x++) { in decompress()
393 decompress_line(line_buf1, w); in decompress()
[all …]
/lvgl-latest/src/extra/widgets/imgbtn/
Dlv_imgbtn.c202 p->x = LV_MAX(p->x, header.w); in lv_imgbtn_event()
248 left_w = header.w; in draw_main()
251 coords_part.x2 = coords.x1 + header.w - 1; in draw_main()
259 right_w = header.w; in draw_main()
260 coords_part.x1 = coords.x2 - header.w + 1; in draw_main()
286 coords_part.x2 = coords_part.x1 + header.w - 1; in draw_main()
289 … for(i = coords_part.x1; i < (lv_coord_t)(clip_area_center.x2 + header.w - 1); i += header.w) { in draw_main()
292 coords_part.x2 += header.w; in draw_main()
/lvgl-latest/src/core/
Dlv_obj_pos.c94 lv_coord_t w; in lv_obj_refr_size() local
96 w = lv_obj_get_width(obj); in lv_obj_refr_size()
99 w = lv_obj_get_style_width(obj, LV_PART_MAIN); in lv_obj_refr_size()
100 w_is_content = w == LV_SIZE_CONTENT ? true : false; in lv_obj_refr_size()
101 w_is_pct = LV_COORD_IS_PCT(w) ? true : false; in lv_obj_refr_size()
105 w = calc_content_width(obj); in lv_obj_refr_size()
112 w = lv_obj_get_style_pad_left(obj, 0) + border_w; in lv_obj_refr_size()
113 w += lv_obj_get_style_pad_right(obj, 0) + border_w; in lv_obj_refr_size()
116 w = (LV_COORD_GET_PCT(w) * parent_w) / 100; in lv_obj_refr_size()
122 w = lv_clamp_width(w, minw, maxw, parent_w); in lv_obj_refr_size()
[all …]

1234567