Home
last modified time | relevance | path

Searched refs:rect (Results 1 – 19 of 19) sorted by relevance

/lvgl-3.5.0/src/draw/sdl/
Dlv_draw_sdl_polygon.c104 SDL_Rect rect = {0, 0, w, h}; in dump_masks() local
107 if(SDL_LockTexture(texture, &rect, (void **) &pixels, &pitch) != 0) return; in dump_masks()
109 lv_opa_t * line_buf = lv_mem_buf_get(rect.w); in dump_masks()
110 for(lv_coord_t y = 0; y < rect.h; y++) { in dump_masks()
111 lv_memset_ff(line_buf, rect.w); in dump_masks()
112 …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()
116 lv_memset_00(&pixels[y * pitch], 4 * rect.w); in dump_masks()
119 lv_memset_ff(&pixels[y * pitch], 4 * rect.w); in dump_masks()
122 for(int x = 0; x < rect.w; x++) { in dump_masks()
Dlv_draw_sdl_bg.c85 SDL_Rect rect; in draw_bg_color() local
86 lv_area_to_sdl_rect(draw_area, &rect); in draw_bg_color()
87 SDL_RenderFillRect(ctx->renderer, &rect); in draw_bg_color()
98 SDL_Rect rect; in draw_bg_img() local
99 lv_area_to_sdl_rect(draw_area, &rect); in draw_bg_img()
100 SDL_RenderFillRect(ctx->renderer, &rect); in draw_bg_img()
Dlv_draw_sdl_arc.c149 SDL_Rect rect = {0, 0, w, h}; in dump_masks() local
152 if(SDL_LockTexture(texture, &rect, (void **) &pixels, &pitch) != 0) return; in dump_masks()
154 lv_opa_t * line_buf = lv_mem_buf_get(rect.w); in dump_masks()
155 for(lv_coord_t y = 0; y < rect.h; y++) { in dump_masks()
156 lv_memset_ff(line_buf, rect.w); in dump_masks()
157 …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()
161 lv_memset_00(&pixels[y * pitch], 4 * rect.w); in dump_masks()
164 lv_memset_ff(&pixels[y * pitch], 4 * rect.w); in dump_masks()
167 for(int x = 0; x < rect.w; x++) { in dump_masks()
175 lv_memset_ff(line_buf, rect.w); in dump_masks()
[all …]
Dlv_draw_sdl_composite.c116 _lv_area_intersect(clip_out, apply_area, &param->cfg.rect); in lv_draw_sdl_composite_begin()
233 SDL_Rect rect = {0, 0, w, h}; in dump_masks() local
236 if(SDL_LockTexture(texture, &rect, (void **) &pixels, &pitch) != 0) return; in dump_masks()
238 lv_opa_t * line_buf = lv_mem_buf_get(rect.w); in dump_masks()
239 for(lv_coord_t y = 0; y < rect.h; y++) { in dump_masks()
240 lv_memset_ff(line_buf, rect.w); in dump_masks()
241 …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()
245 lv_memset_00(&pixels[y * pitch], 4 * rect.w); in dump_masks()
248 lv_memset_ff(&pixels[y * pitch], 4 * rect.w); in dump_masks()
251 for(int x = 0; x < rect.w; x++) { in dump_masks()
Dlv_draw_sdl_img.c158 if(SDL_RectEmpty(&header->rect)) { in calc_draw_part()
166 x = header->rect.x; in calc_draw_part()
167 y = header->rect.y; in calc_draw_part()
168 w = header->rect.w; in calc_draw_part()
169 h = header->rect.h; in calc_draw_part()
192 SDL_Rect rect; in lv_draw_sdl_img_load_texture() local
193 SDL_memset(&rect, 0, sizeof(SDL_Rect)); in lv_draw_sdl_img_load_texture()
199 rect = ptr->rect; in lv_draw_sdl_img_load_texture()
215 (*header)->rect = rect; in lv_draw_sdl_img_load_texture()
287 if(!_lv_area_is_equal(&rparam->cfg.rect, coords)) return false; in check_mask_simple_radius()
Dlv_draw_sdl_img.h37 SDL_Rect rect; member
Dlv_draw_sdl_rect.h37 SDL_Rect rect; member
Dlv_draw_sdl_texture_cache.h40 SDL_Rect rect; member
Dlv_draw_sdl_rect.c380 SDL_Rect rect; in draw_bg_color() local
381 lv_area_to_sdl_rect(draw_area, &rect); in draw_bg_color()
384 SDL_RenderFillRect(ctx->renderer, &rect); in draw_bg_color()
/lvgl-3.5.0/src/draw/
Dlv_draw_mask.c267 … if(!_lv_area_is_out(a, &radius_param->cfg.rect, radius_param->cfg.radius)) return true; in lv_draw_mask_is_any()
270 … if(!_lv_area_is_in(a, &radius_param->cfg.rect, radius_param->cfg.radius)) return true; in lv_draw_mask_is_any()
474 void lv_draw_mask_radius_init(lv_draw_mask_radius_param_t * param, const lv_area_t * rect, lv_coord… in lv_draw_mask_radius_init() argument
476 lv_coord_t w = lv_area_get_width(rect); in lv_draw_mask_radius_init()
477 lv_coord_t h = lv_area_get_height(rect); in lv_draw_mask_radius_init()
482 lv_area_copy(&param->cfg.rect, rect); in lv_draw_mask_radius_init()
1059 lv_area_t rect; in lv_draw_mask_radius() local
1060 lv_area_copy(&rect, &p->cfg.rect); in lv_draw_mask_radius()
1063 if((abs_y < rect.y1 || abs_y > rect.y2)) { in lv_draw_mask_radius()
1068 if(abs_y < rect.y1 || abs_y > rect.y2) { in lv_draw_mask_radius()
[all …]
Dlv_draw_mask.h173 lv_area_t rect; member
359 void lv_draw_mask_radius_init(lv_draw_mask_radius_param_t * param, const lv_area_t * rect, lv_coord…
/lvgl-3.5.0/examples/widgets/table/
Dlv_example_table_2.py28 dsc.draw_ctx.rect(rect_dsc, sw_area)
40 dsc.draw_ctx.rect(rect_dsc, sw_area)
/lvgl-3.5.0/src/draw/nxp/vglite/
Dlv_draw_vglite_blend.c179 vg_lite_rectangle_t rect = { in lv_gpu_nxp_vglite_fill() local
186 err = vg_lite_clear(vgbuf, &rect, vgcol); in lv_gpu_nxp_vglite_fill()
466 uint32_t rect[] = { in lv_vglite_blit_single() local
501 …err = vg_lite_blit_rect(dst_vgbuf, src_vgbuf, rect, &vgmatrix, blend, color, VG_LITE_FILTER_POINT); in lv_vglite_blit_single()
/lvgl-3.5.0/src/extra/libs/sjpg/
Dlv_sjpg.c283 static int img_data_cb(JDEC * jd, void * data, JRECT * rect) in img_data_cb() argument
290 const int row_width = rect->right - rect->left + 1; // Row width in pixels. in img_data_cb()
293 for(int y = rect->top; y <= rect->bottom; y++) { in img_data_cb()
294 int row_offset = y * xres * INPUT_PIXEL_SIZE + rect->left * INPUT_PIXEL_SIZE; in img_data_cb()
Dtjpgd.c800 JRECT rect; in mcu_output() local
811 rect.left = img_x; rect.right = img_x + rx - 1; /* Rectangular area in the frame buffer */ in mcu_output()
812 rect.top = img_y; rect.bottom = img_y + ry - 1; in mcu_output()
949 return outfunc(jd, jd->workbuf, &rect) ? JDR_OK : JDR_INTR; in mcu_output()
/lvgl-3.5.0/examples/widgets/chart/
Dlv_example_chart_2.py38 dsc.draw_ctx.rect(draw_rect_dsc, a)
Dlv_example_chart_8.py44 dsc.draw_ctx.rect(draw_rect_dsc, a)
/lvgl-3.5.0/docs/porting/
Dgpu.md20 - `void (*draw_bg)()` Replace the buffer with a rect without decoration like radius or borders.
/lvgl-3.5.0/docs/_static/css/
Dfontawesome.min.css5 …e{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px…