Lines Matching refs:radius

38     lv_coord_t w, h, radius;  member
65 static bool check_mask_simple_radius(const lv_area_t * coords, lv_coord_t * radius);
72 lv_coord_t radius);
75 … const lv_draw_sdl_img_header_t * header, int w, int h, lv_coord_t radius,
79 lv_coord_t radius);
128 lv_coord_t radius = 0; in lv_draw_sdl_img_core() local
134 if(!check_mask_simple_radius(&t_coords, &radius)) { in lv_draw_sdl_img_core()
147 if(radius > 0) { in lv_draw_sdl_img_core()
148 draw_img_rounded(ctx, texture, header, draw_dsc, &t_coords, &t_clip, radius); in lv_draw_sdl_img_core()
294 static bool check_mask_simple_radius(const lv_area_t * coords, lv_coord_t * radius) in check_mask_simple_radius() argument
303 *radius = rparam->cfg.radius; in check_mask_simple_radius()
333 lv_coord_t radius) in draw_img_rounded() argument
336 lv_coord_t real_radius = LV_MIN3(radius, w, h); 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()
400 … const lv_draw_sdl_img_header_t * header, int w, int h, lv_coord_t radius, in img_rounded_frag_obtain() argument
403 lv_draw_img_rounded_key_t key = rounded_key_create(texture, w, h, radius); in img_rounded_frag_obtain()
405 SDL_Texture * mask_frag = lv_draw_sdl_rect_bg_frag_obtain(ctx, radius, &mask_frag_in_cache); in img_rounded_frag_obtain()
408 const lv_coord_t full_frag_size = radius * 2 + 3; in img_rounded_frag_obtain()
423 lv_draw_sdl_rect_bg_frag_draw_corners(ctx, mask_frag, radius, &frag_coords, NULL, false); in img_rounded_frag_obtain()
435 SDL_Rect srcrect, cliprect, dstrect = {0, 0, radius, radius}; in img_rounded_frag_obtain()
437 cliprect.w = cliprect.h = radius; in img_rounded_frag_obtain()
446 cliprect.x = full_frag_size - radius; in img_rounded_frag_obtain()
451 cliprect.x = full_frag_size - radius; in img_rounded_frag_obtain()
452 cliprect.y = full_frag_size - radius; in img_rounded_frag_obtain()
457 cliprect.y = full_frag_size - radius; in img_rounded_frag_obtain()
485 lv_coord_t radius) in rounded_key_create() argument
493 key.radius = radius; in rounded_key_create()