Lines Matching refs:coords

65 static bool check_mask_simple_radius(const lv_area_t * coords, lv_coord_t * radius);
68 … const lv_draw_img_dsc_t * draw_dsc, const lv_area_t * coords, const lv_area_t * clip);
71 … const lv_draw_img_dsc_t * draw_dsc, const lv_area_t * coords, const lv_area_t * clip,
81 …draw_part(SDL_Texture * texture, const lv_draw_sdl_img_header_t * header, const lv_area_t * coords,
98 const lv_area_t * coords, const void * src) in lv_draw_sdl_img_core() argument
123 …g_buf_get_transformed_area(&zoomed_cords, lv_area_get_width(coords), lv_area_get_height(coords), 0, in lv_draw_sdl_img_core()
125 lv_area_move(&zoomed_cords, coords->x1, coords->y1); in lv_draw_sdl_img_core()
167 …draw_part(SDL_Texture * texture, const lv_draw_sdl_img_header_t * header, const lv_area_t * coords, in calc_draw_part() argument
186 _lv_area_intersect(&clipped_area, coords, clip); in calc_draw_part()
190 lv_area_to_sdl_rect(coords, clipped_dst); in calc_draw_part()
192 lv_coord_t coords_w = lv_area_get_width(coords), coords_h = lv_area_get_height(coords); in calc_draw_part()
193 clipped_src->x = (int)(x + (clipped_dst->x - coords->x1) * w / coords_w); in calc_draw_part()
194 clipped_src->y = (int)(y + (clipped_dst->y - coords->y1) * h / coords_h); in calc_draw_part()
294 static bool check_mask_simple_radius(const lv_area_t * coords, lv_coord_t * radius) in check_mask_simple_radius() argument
302 if(!_lv_area_is_equal(&rparam->cfg.rect, coords)) return false; in check_mask_simple_radius()
311 … const lv_draw_img_dsc_t * draw_dsc, const lv_area_t * coords, const lv_area_t * clip) in draw_img_simple() argument
324 calc_draw_part(texture, header, coords, clip, &src_rect, &dst_rect); in draw_img_simple()
332 … const lv_draw_img_dsc_t * draw_dsc, const lv_area_t * coords, const lv_area_t * clip, in draw_img_rounded() argument
335 const int w = lv_area_get_width(coords), h = lv_area_get_height(coords); in draw_img_rounded()
340 lv_draw_sdl_rect_bg_frag_draw_corners(ctx, frag, real_radius, coords, clip, true); in draw_img_rounded()
347 calc_draw_part(texture, header, coords, NULL, &src_rect, &dst_rect); in draw_img_rounded()
351 … lv_area_set(&part, coords->x1, coords->y1 + radius, coords->x1 + radius - 1, coords->y2 - radius); in draw_img_rounded()
354 … lv_area_set(&part, coords->x1 + radius, coords->y1, coords->x2 - radius, coords->y2); in draw_img_rounded()
357 … lv_area_set(&part, coords->x2 - radius + 1, coords->y1 + radius, coords->x2, coords->y2 - radius); in draw_img_rounded()
360 … lv_area_set(&part, coords->x1 + radius, coords->y1, coords->x2 - radius, coords->y1 + radius - 1); in draw_img_rounded()
363 … lv_area_set(&part, coords->x1 + radius, coords->y2 - radius + 1, coords->x2 - radius, coords->y2); in draw_img_rounded()
366 … lv_area_set(&part, coords->x1, coords->y1 + radius, coords->x2, coords->y2 - radius); in draw_img_rounded()
421 lv_area_t coords = {0, 0, w - 1, h - 1}; in img_rounded_frag_obtain() local
443 lv_area_align(&frag_coords, &coords, LV_ALIGN_TOP_LEFT, 0, 0); in img_rounded_frag_obtain()
448 lv_area_align(&frag_coords, &coords, LV_ALIGN_TOP_RIGHT, 0, 0); in img_rounded_frag_obtain()
453 lv_area_align(&frag_coords, &coords, LV_ALIGN_BOTTOM_RIGHT, 0, 0); in img_rounded_frag_obtain()
458 lv_area_align(&frag_coords, &coords, LV_ALIGN_BOTTOM_LEFT, 0, 0); in img_rounded_frag_obtain()
463 calc_draw_part(texture, header, &coords, NULL, &srcrect, &dstrect); in img_rounded_frag_obtain()