Lines Matching refs:radius
38 lv_coord_t radius; member
56 lv_coord_t radius; member
61 lv_coord_t radius; member
107 static lv_draw_rect_bg_key_t rect_bg_key_create(lv_coord_t radius, lv_coord_t size);
110 lv_coord_t radius);
114 static lv_draw_rect_shadow_key_t rect_shadow_key_create(lv_coord_t radius, lv_coord_t size, lv_coor…
178 SDL_Texture * lv_draw_sdl_rect_bg_frag_obtain(lv_draw_sdl_ctx_t * ctx, lv_coord_t radius, bool * in… in lv_draw_sdl_rect_bg_frag_obtain() argument
180 lv_draw_rect_bg_key_t key = rect_bg_key_create(radius, radius); in lv_draw_sdl_rect_bg_frag_obtain()
183 lv_area_t coords = {0, 0, radius * 2 - 1, radius * 2 - 1}; in lv_draw_sdl_rect_bg_frag_obtain()
184 lv_area_t coords_frag = {0, 0, radius - 1, radius - 1}; in lv_draw_sdl_rect_bg_frag_obtain()
186 lv_draw_mask_radius_init(&mask_rout_param, &coords, radius, false); in lv_draw_sdl_rect_bg_frag_obtain()
200 lv_coord_t h, lv_coord_t radius, bool * in_cache) in lv_draw_sdl_rect_grad_frag_obtain() argument
202 lv_draw_rect_grad_frag_key_t key = rect_grad_frag_key_create(grad, w, h, radius); in lv_draw_sdl_rect_grad_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()
211 lv_draw_mask_radius_init(&mask_rout_param, &coords, radius, false); in lv_draw_sdl_rect_grad_frag_obtain()
224 lv_area_t draw_area = {.x1 = 0, .y1 = 0, .x2 = radius - 1, .y2 = radius - 1}; in lv_draw_sdl_rect_grad_frag_obtain()
370 lv_coord_t radius = dsc->radius; in draw_bg_color() local
379 if(radius <= 0) { in draw_bg_color()
387 if(radius <= 0) { in draw_bg_color()
398 lv_coord_t real_radius = LV_MIN3(bg_w / 2, bg_h / 2, radius); in draw_bg_color()
464 lv_coord_t radius = dsc->radius; in draw_bg_grad_radius() local
467 lv_coord_t real_radius = LV_MIN3(bg_w / 2, bg_h / 2, radius); in draw_bg_grad_radius()
469 …_Texture * grad_texture = lv_draw_sdl_rect_grad_frag_obtain(ctx, &dsc->bg_grad, bg_w, bg_h, radius, in draw_bg_grad_radius()
476 if(bg_w > radius * 2) { in draw_bg_grad_radius()
479 part_coords.x2 = radius - 1; in draw_bg_grad_radius()
480 part_coords.y1 = radius; in draw_bg_grad_radius()
481 part_coords.y2 = bg_h - radius - 1; in draw_bg_grad_radius()
491 part_coords.x1 = radius; in draw_bg_grad_radius()
492 part_coords.x2 = bg_w - radius - 1; in draw_bg_grad_radius()
499 else if(bg_h > radius * 2) { in draw_bg_grad_radius()
501 part_coords.x1 = radius; in draw_bg_grad_radius()
502 part_coords.x2 = bg_w - radius - 1; in draw_bg_grad_radius()
504 part_coords.y2 = radius - 1; in draw_bg_grad_radius()
516 part_coords.y1 = radius; in draw_bg_grad_radius()
517 part_coords.y2 = bg_h - radius - 1; in draw_bg_grad_radius()
580 if(dsc->radius > 0) { in draw_bg_img()
581 lv_draw_mask_radius_init(&radius_param, coords, dsc->radius, false); in draw_bg_img()
649 lv_coord_t radius = dsc->radius; in draw_shadow() local
652 LV_MAX(sw / 2, radius)); in draw_shadow()
659 lv_draw_rect_shadow_key_t key = rect_shadow_key_create(radius, frag_size, sw); in draw_shadow()
671 lv_draw_mask_radius_init(&mask_rout_param, &mask_area, radius, false); in draw_shadow()
713 lv_coord_t rout = LV_MIN(dsc->radius, short_side / 2);/*Get the inner area*/ in draw_border()
758 lv_coord_t rin = dsc->radius; in draw_outline()
777 …lv_coord_t radius = LV_MIN3(rout, lv_area_get_width(outer_area) / 2, lv_area_get_height(outer_area… in draw_border_generic() local
779 lv_coord_t frag_size = LV_MAX(radius, max_side); in draw_border_generic()
942 static lv_draw_rect_bg_key_t rect_bg_key_create(lv_coord_t radius, lv_coord_t size) in rect_bg_key_create() argument
947 key.radius = radius; in rect_bg_key_create()
953 lv_coord_t radius) in rect_grad_frag_key_create() argument
966 key.radius = radius; in rect_grad_frag_key_create()
984 static lv_draw_rect_shadow_key_t rect_shadow_key_create(lv_coord_t radius, lv_coord_t size, lv_coor… in rect_shadow_key_create() argument
989 key.radius = radius; in rect_shadow_key_create()