Lines Matching refs:coords

76 static void draw_bg_color(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * draw…
79 static void draw_bg_grad_simple(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t …
82 static void draw_bg_grad_radius(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t …
85 static void draw_bg_img(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * draw_a…
88 static void draw_border(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * draw_a…
91 static void draw_shadow(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * clip,
94 static void draw_outline(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * clip,
102 const lv_area_t * coords, const lv_area_t * clipped, bool full);
105 const lv_area_t * coords, const lv_area_t * clipped, bool full);
135 …w_sdl_draw_rect(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, const lv_area_t * coords) in lv_draw_sdl_draw_rect() argument
156 lv_area_t t_coords = *coords, t_clip = *clip, apply_area, t_area; in lv_draw_sdl_draw_rect()
157 …bool has_composite = lv_draw_sdl_composite_begin(ctx, coords, clip, &extension, dsc->blend_mode, &… in lv_draw_sdl_draw_rect()
183 lv_area_t coords = {0, 0, radius * 2 - 1, radius * 2 - 1}; in lv_draw_sdl_rect_bg_frag_obtain() local
186 lv_draw_mask_radius_init(&mask_rout_param, &coords, radius, false); in lv_draw_sdl_rect_bg_frag_obtain()
205 lv_area_t coords = {0, 0, radius * 2 + FRAG_SPACING - 1, radius * 2 + FRAG_SPACING - 1}; in lv_draw_sdl_rect_grad_frag_obtain() local
207 lv_area_get_width(&coords), lv_area_get_height(&coords)); in lv_draw_sdl_rect_grad_frag_obtain()
211 lv_draw_mask_radius_init(&mask_rout_param, &coords, radius, false); in lv_draw_sdl_rect_grad_frag_obtain()
213 SDL_Texture * mask = lv_draw_sdl_mask_dump_texture(ctx->renderer, &coords, &mask_id, 1); in lv_draw_sdl_rect_grad_frag_obtain()
226 lv_area_align(&coords, &draw_area, LV_ALIGN_TOP_LEFT, 0, 0); in lv_draw_sdl_rect_grad_frag_obtain()
227 lv_area_align(&coords, &blend_coords, LV_ALIGN_TOP_LEFT, 0, 0); in lv_draw_sdl_rect_grad_frag_obtain()
231 lv_area_align(&coords, &draw_area, LV_ALIGN_TOP_RIGHT, 0, 0); in lv_draw_sdl_rect_grad_frag_obtain()
232 lv_area_align(&coords, &blend_coords, LV_ALIGN_TOP_RIGHT, 0, 0); in lv_draw_sdl_rect_grad_frag_obtain()
236 lv_area_align(&coords, &draw_area, LV_ALIGN_BOTTOM_RIGHT, 0, 0); in lv_draw_sdl_rect_grad_frag_obtain()
237 lv_area_align(&coords, &blend_coords, LV_ALIGN_BOTTOM_RIGHT, 0, 0); in lv_draw_sdl_rect_grad_frag_obtain()
241 lv_area_align(&coords, &draw_area, LV_ALIGN_BOTTOM_LEFT, 0, 0); in lv_draw_sdl_rect_grad_frag_obtain()
242 lv_area_align(&coords, &blend_coords, LV_ALIGN_BOTTOM_LEFT, 0, 0); in lv_draw_sdl_rect_grad_frag_obtain()
283 … const lv_area_t * coords, const lv_area_t * clip, bool full) in lv_draw_sdl_rect_bg_frag_draw_corners() argument
285 if(!clip) clip = coords; in lv_draw_sdl_rect_bg_frag_draw_corners()
288 corner_area.x1 = coords->x1; in lv_draw_sdl_rect_bg_frag_draw_corners()
289 corner_area.y1 = coords->y1; in lv_draw_sdl_rect_bg_frag_draw_corners()
290 corner_area.x2 = coords->x1 + frag_size - 1; in lv_draw_sdl_rect_bg_frag_draw_corners()
291 corner_area.y2 = coords->y1 + frag_size - 1; in lv_draw_sdl_rect_bg_frag_draw_corners()
302 corner_area.x1 = LV_MAX(coords->x2 - frag_size + 1, coords->x1 + frag_size); in lv_draw_sdl_rect_bg_frag_draw_corners()
303 corner_area.x2 = coords->x2; in lv_draw_sdl_rect_bg_frag_draw_corners()
321 corner_area.y1 = LV_MAX(coords->y2 - frag_size + 1, coords->y1 + frag_size); in lv_draw_sdl_rect_bg_frag_draw_corners()
322 corner_area.y2 = coords->y2; in lv_draw_sdl_rect_bg_frag_draw_corners()
340 corner_area.x1 = coords->x1; in lv_draw_sdl_rect_bg_frag_draw_corners()
341 corner_area.x2 = coords->x1 + frag_size - 1; in lv_draw_sdl_rect_bg_frag_draw_corners()
364 static void draw_bg_color(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * draw… in draw_bg_color() argument
380 draw_bg_grad_simple(ctx, coords, draw_area, &dsc->bg_grad, false); in draw_bg_color()
383 draw_bg_grad_radius(ctx, coords, draw_area, dsc); in draw_bg_color()
397 lv_coord_t bg_w = lv_area_get_width(coords), bg_h = lv_area_get_height(coords); in draw_bg_color()
405 lv_draw_sdl_rect_bg_frag_draw_corners(ctx, texture, real_radius, coords, draw_area, false); in draw_bg_color()
406 frag_render_borders(ctx->renderer, texture, real_radius, coords, draw_area, false); in draw_bg_color()
407 frag_render_center(ctx->renderer, texture, real_radius, coords, draw_area, false); in draw_bg_color()
415 static void draw_bg_grad_simple(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t … in draw_bg_grad_simple() argument
422 lv_coord_t coords_h = lv_area_get_height(coords); in draw_bg_grad_simple()
424 srcrect.y = (draw_area->y1 - coords->y1) * 255 / coords_h; in draw_bg_grad_simple()
433 lv_coord_t coords_w = lv_area_get_width(coords); in draw_bg_grad_simple()
434 srcrect.x = (draw_area->x1 - coords->x1) * 255 / coords_w; in draw_bg_grad_simple()
461 static void draw_bg_grad_radius(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t … in draw_bg_grad_radius() argument
466 lv_coord_t bg_w = lv_area_get_width(coords), bg_h = lv_area_get_height(coords); in draw_bg_grad_radius()
473 lv_draw_sdl_rect_bg_frag_draw_corners(ctx, grad_texture, real_radius, coords, draw_area, true); in draw_bg_grad_radius()
483 lv_area_align(coords, &part_coords, LV_ALIGN_LEFT_MID, 0, 0); in draw_bg_grad_radius()
485 draw_bg_grad_simple(ctx, coords, &part_area, &dsc->bg_grad, false); in draw_bg_grad_radius()
487 lv_area_align(coords, &part_coords, LV_ALIGN_RIGHT_MID, 0, 0); in draw_bg_grad_radius()
489 draw_bg_grad_simple(ctx, coords, &part_area, &dsc->bg_grad, false); in draw_bg_grad_radius()
495 lv_area_align(coords, &part_coords, LV_ALIGN_CENTER, 0, 0); in draw_bg_grad_radius()
497 draw_bg_grad_simple(ctx, coords, &part_area, &dsc->bg_grad, false); in draw_bg_grad_radius()
506 lv_area_align(coords, &part_coords, LV_ALIGN_TOP_MID, 0, 0); in draw_bg_grad_radius()
508 draw_bg_grad_simple(ctx, coords, &part_area, &dsc->bg_grad, false); in draw_bg_grad_radius()
510 lv_area_align(coords, &part_coords, LV_ALIGN_BOTTOM_MID, 0, 0); in draw_bg_grad_radius()
512 draw_bg_grad_simple(ctx, coords, &part_area, &dsc->bg_grad, false); in draw_bg_grad_radius()
518 lv_area_align(coords, &part_coords, LV_ALIGN_CENTER, 0, 0); in draw_bg_grad_radius()
520 draw_bg_grad_simple(ctx, coords, &part_area, &dsc->bg_grad, false); in draw_bg_grad_radius()
529 static void draw_bg_img(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * draw_a… in draw_bg_img() argument
540 a.x1 = coords->x1 + lv_area_get_width(coords) / 2 - size.x / 2; in draw_bg_img()
542 a.y1 = coords->y1 + lv_area_get_height(coords) / 2 - size.y / 2; in draw_bg_img()
581 lv_draw_mask_radius_init(&radius_param, coords, dsc->radius, false); in draw_bg_img()
588 area.x1 = coords->x1 + lv_area_get_width(coords) / 2 - header.w / 2; in draw_bg_img()
589 area.y1 = coords->y1 + lv_area_get_height(coords) / 2 - header.h / 2; in draw_bg_img()
597 area.y1 = coords->y1; in draw_bg_img()
600 for(; area.y1 <= coords->y2; area.y1 += header.h, area.y2 += header.h) { in draw_bg_img()
602 area.x1 = coords->x1; in draw_bg_img()
604 for(; area.x1 <= coords->x2; area.x1 += header.w, area.x2 += header.w) { in draw_bg_img()
617 static void draw_shadow(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * clip, in draw_shadow() argument
626 core_area.x1 = coords->x1 + dsc->shadow_ofs_x - dsc->shadow_spread; in draw_shadow()
627 core_area.x2 = coords->x2 + dsc->shadow_ofs_x + dsc->shadow_spread; in draw_shadow()
628 core_area.y1 = coords->y1 + dsc->shadow_ofs_y - dsc->shadow_spread; in draw_shadow()
629 core_area.y2 = coords->y2 + dsc->shadow_ofs_y + dsc->shadow_spread; in draw_shadow()
703 static void draw_border(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * draw_a… in draw_border() argument
711 lv_coord_t coords_w = lv_area_get_width(coords), coords_h = lv_area_get_height(coords); in draw_border()
715 lv_area_copy(&area_inner, coords);// lv_area_increase(&area_inner, 1, 1); in draw_border()
721 …draw_border_generic(ctx, coords, &area_inner, draw_area, rout, rin, dsc->border_color, dsc->border… in draw_border()
725 static void draw_outline(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * clip, in draw_outline() argument
736 lv_area_copy(&area_inner, coords); in draw_outline()
833 const lv_area_t * coords, const lv_area_t * clipped, bool full) in frag_render_borders() argument
837 border_area.x1 = coords->x1 + frag_size; in frag_render_borders()
838 border_area.y1 = coords->y1; in frag_render_borders()
839 border_area.x2 = coords->x2 - frag_size; in frag_render_borders()
840 border_area.y2 = coords->y1 + frag_size - 1; in frag_render_borders()
856 border_area.y1 = LV_MAX(coords->y2 - frag_size + 1, coords->y1 + frag_size); in frag_render_borders()
857 border_area.y2 = coords->y2; in frag_render_borders()
875 border_area.x1 = coords->x1; in frag_render_borders()
876 border_area.y1 = coords->y1 + frag_size; in frag_render_borders()
877 border_area.x2 = coords->x1 + frag_size - 1; in frag_render_borders()
878 border_area.y2 = coords->y2 - frag_size; in frag_render_borders()
895 border_area.x1 = LV_MAX(coords->x2 - frag_size + 1, coords->x1 + frag_size); in frag_render_borders()
896 border_area.x2 = coords->x2; in frag_render_borders()
916 const lv_area_t * coords, in frag_render_center() argument
920 coords->x1 + frag_size, in frag_render_center()
921 coords->y1 + frag_size, in frag_render_center()
922 coords->x2 - frag_size, in frag_render_center()
923 coords->y2 - frag_size, in frag_render_center()