/lvgl-3.7.0/src/draw/sdl/ |
D | lv_draw_sdl_stack_blur.c | 25 stack_blur_job(lv_opa_t * src, unsigned int w, unsigned int h, unsigned int radius, int cores, int … 91 static void stack_blur_job(lv_opa_t * src, unsigned int w, unsigned int h, unsigned int radius, int… in stack_blur_job() argument 94 if(radius < 2 || radius > 254) { in stack_blur_job() 114 unsigned int div = (radius * 2) + 1; in stack_blur_job() 115 unsigned int mul_sum = stackblur_mul[radius]; in stack_blur_job() 116 unsigned char shr_sum = stackblur_shr[radius]; in stack_blur_job() 130 for(i = 0; i <= radius; i++) { in stack_blur_job() 137 for(i = 1; i <= radius; i++) { in stack_blur_job() 139 stack_ptr = &stack[i + radius]; in stack_blur_job() 141 sum_r += src_ptr[0] * (radius + 1 - i); in stack_blur_job() [all …]
|
D | lv_draw_sdl_img.c | 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 [all …]
|
D | lv_draw_sdl_rect.c | 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() [all …]
|
D | lv_draw_sdl_arc.c | 41 static void get_cap_area(int16_t angle, lv_coord_t thickness, uint16_t radius, const lv_point_t * c… 48 uint16_t radius, uint16_t start_angle, uint16_t end_angle) in lv_draw_sdl_draw_arc() argument 53 area_out.x1 = center->x - radius; in lv_draw_sdl_draw_arc() 54 area_out.y1 = center->y - radius; in lv_draw_sdl_draw_arc() 55 …area_out.x2 = center->x + radius - 1; /*-1 because the center already belongs to the left/bottom … in lv_draw_sdl_draw_arc() 56 area_out.y2 = center->y + radius - 1; in lv_draw_sdl_draw_arc() 97 get_cap_area((int16_t) start_angle, dsc->width, radius, center, &start_area); in lv_draw_sdl_draw_arc() 98 get_cap_area((int16_t) end_angle, dsc->width, radius, center, &end_area); in lv_draw_sdl_draw_arc() 204 static void get_cap_area(int16_t angle, lv_coord_t thickness, uint16_t radius, const lv_point_t * c… in get_cap_area() argument 216 cir_x = ((radius - thick_half) * lv_trigo_sin((int16_t)(90 - angle))) >> (LV_TRIGO_SHIFT - ps); in get_cap_area() [all …]
|
D | lv_draw_sdl_rect.h | 66 SDL_Texture * lv_draw_sdl_rect_bg_frag_obtain(lv_draw_sdl_ctx_t * ctx, lv_coord_t radius, bool * in… 79 lv_coord_t h, lv_coord_t radius, bool * in_cache);
|
/lvgl-3.7.0/src/draw/sw/ |
D | lv_draw_sw_arc.c | 26 lv_coord_t radius; member 45 …static void get_rounded_area(int16_t angle, lv_coord_t radius, uint8_t thickness, lv_area_t * res_… 60 …v_draw_ctx_t * draw_ctx, const lv_draw_arc_dsc_t * dsc, const lv_point_t * center, uint16_t radius, in lv_draw_sw_arc() argument 69 if(width > radius) width = radius; in lv_draw_sw_arc() 85 area_out.x1 = center->x - radius; in lv_draw_sw_arc() 86 area_out.y1 = center->y - radius; in lv_draw_sw_arc() 87 …area_out.x2 = center->x + radius - 1; /*-1 because the center already belongs to the left/bottom … in lv_draw_sw_arc() 88 area_out.y2 = center->y + radius - 1; in lv_draw_sw_arc() 113 cir_dsc.radius = LV_RADIUS_CIRCLE; in lv_draw_sw_arc() 144 if(angle_gap > SPLIT_ANGLE_GAP_LIMIT && radius > SPLIT_RADIUS_LIMIT) { in lv_draw_sw_arc() [all …]
|
/lvgl-3.7.0/src/draw/nxp/vglite/ |
D | lv_draw_vglite_rect.c | 77 lv_coord_t radius, 99 lv_coord_t radius = dsc->radius; in lv_gpu_nxp_vglite_draw_bg() local 102 if(dsc->radius < 0) in lv_gpu_nxp_vglite_draw_bg() 108 lv_vglite_create_rect_path_data(path_data, &path_data_size, radius, coords); in lv_gpu_nxp_vglite_draw_bg() 109 vg_lite_quality_t path_quality = dsc->radius > 0 ? VG_LITE_HIGH : VG_LITE_LOW; in lv_gpu_nxp_vglite_draw_bg() 201 lv_coord_t radius = dsc->radius; in lv_gpu_nxp_vglite_draw_border_generic() local 204 if(radius < 0) in lv_gpu_nxp_vglite_draw_border_generic() 210 if(radius > border_half) in lv_gpu_nxp_vglite_draw_border_generic() 211 radius = radius - border_half; in lv_gpu_nxp_vglite_draw_border_generic() 216 if(radius < (lv_coord_t)LV_RADIUS_CIRCLE - outline_half) in lv_gpu_nxp_vglite_draw_border_generic() [all …]
|
D | lv_draw_vglite_arc.c | 91 static void add_arc_path(int32_t * arc_path, int * pidx, int32_t radius, 106 lv_res_t lv_gpu_nxp_vglite_draw_arc(const lv_point_t * center, int32_t radius, int32_t start_angle,… in lv_gpu_nxp_vglite_draw_arc() argument 122 if(width > (lv_coord_t)radius) in lv_gpu_nxp_vglite_draw_arc() 123 width = radius; in lv_gpu_nxp_vglite_draw_arc() 129 cp_x = radius; in lv_gpu_nxp_vglite_draw_arc() 137 add_arc_path(arc_path, &pidx, radius, start_angle, end_angle, center, true); in lv_gpu_nxp_vglite_draw_arc() 141 cp_x = radius; in lv_gpu_nxp_vglite_draw_arc() 148 cp_x = radius - width; in lv_gpu_nxp_vglite_draw_arc() 157 cp_x = radius - width / 2; in lv_gpu_nxp_vglite_draw_arc() 166 cp_x = radius - width; in lv_gpu_nxp_vglite_draw_arc() [all …]
|
D | lv_draw_vglite_arc.h | 70 lv_res_t lv_gpu_nxp_vglite_draw_arc(const lv_point_t * center, int32_t radius, int32_t start_angle,…
|
D | lv_draw_vglite.c | 92 uint16_t radius, uint16_t start_angle, uint16_t end_angle); 407 if(dsc->border_width > 1 && dsc->border_opa >= (lv_opa_t)LV_OPA_MAX && dsc->radius != 0) { in lv_draw_vglite_bg() 436 if(!has_mask && ((dsc->radius != 0) || (grad_dir != (lv_grad_dir_t)LV_GRAD_DIR_NONE))) { in lv_draw_vglite_bg() 519 uint16_t radius, uint16_t start_angle, uint16_t end_angle) in lv_draw_vglite_arc() argument 532 lv_draw_sw_arc(draw_ctx, dsc, center, radius, start_angle, end_angle); in lv_draw_vglite_arc() 545 …done = (lv_gpu_nxp_vglite_draw_arc(&rel_center, (int32_t)radius, (int32_t)start_angle, (int32_t)en… in lv_draw_vglite_arc() 554 lv_draw_sw_arc(draw_ctx, dsc, center, radius, start_angle, end_angle); in lv_draw_vglite_arc()
|
/lvgl-3.7.0/src/misc/ |
D | lv_area.c | 239 bool _lv_area_is_point_on(const lv_area_t * a_p, const lv_point_t * p_p, lv_coord_t radius) in _lv_area_is_point_on() argument 249 if(radius <= 0) { in _lv_area_is_point_on() 256 if(radius > max_radius) in _lv_area_is_point_on() 257 radius = max_radius; in _lv_area_is_point_on() 263 corner_area.x2 = a_p->x1 + radius; in _lv_area_is_point_on() 265 corner_area.y2 = a_p->y1 + radius; in _lv_area_is_point_on() 267 corner_area.x2 += radius; in _lv_area_is_point_on() 268 corner_area.y2 += radius; in _lv_area_is_point_on() 272 corner_area.y1 = a_p->y2 - radius; in _lv_area_is_point_on() 275 corner_area.x2 += radius; in _lv_area_is_point_on() [all …]
|
D | lv_area.h | 204 bool _lv_area_is_point_on(const lv_area_t * a_p, const lv_point_t * p_p, lv_coord_t radius); 221 bool _lv_area_is_in(const lv_area_t * ain_p, const lv_area_t * aholder_p, lv_coord_t radius); 230 bool _lv_area_is_out(const lv_area_t * aout_p, const lv_area_t * aholder_p, lv_coord_t radius);
|
/lvgl-3.7.0/src/draw/ |
D | lv_draw_mask.c | 55 static void circ_init(lv_point_t * c, lv_coord_t * tmp, lv_coord_t radius); 58 static void circ_calc_aa4(_lv_draw_mask_radius_circle_dsc_t * c, lv_coord_t radius); 268 … if(!_lv_area_is_out(a, &radius_param->cfg.rect, radius_param->cfg.radius)) return true; in lv_draw_mask_is_any() 271 … if(!_lv_area_is_in(a, &radius_param->cfg.rect, radius_param->cfg.radius)) return true; in lv_draw_mask_is_any() 475 …dius_init(lv_draw_mask_radius_param_t * param, const lv_area_t * rect, lv_coord_t radius, bool inv) in lv_draw_mask_radius_init() argument 480 if(radius > short_side >> 1) radius = short_side >> 1; in lv_draw_mask_radius_init() 481 if(radius < 0) radius = 0; in lv_draw_mask_radius_init() 484 param->cfg.radius = radius; in lv_draw_mask_radius_init() 489 if(radius == 0) { in lv_draw_mask_radius_init() 498 if(LV_GC_ROOT(_lv_circle_cache[i]).radius == radius) { in lv_draw_mask_radius_init() [all …]
|
D | lv_draw_arc.h | 59 uint16_t radius, uint16_t start_angle, uint16_t end_angle); 72 void lv_draw_arc_get_area(lv_coord_t x, lv_coord_t y, uint16_t radius, uint16_t start_angle, uint1…
|
D | lv_draw_arc.c | 44 …v_draw_ctx_t * draw_ctx, const lv_draw_arc_dsc_t * dsc, const lv_point_t * center, uint16_t radius, in lv_draw_arc() argument 51 draw_ctx->draw_arc(draw_ctx, dsc, center, radius, start_angle, end_angle); in lv_draw_arc() 57 void lv_draw_arc_get_area(lv_coord_t x, lv_coord_t y, uint16_t radius, uint16_t start_angle, uint1… in lv_draw_arc_get_area() argument 60 lv_coord_t rout = radius; in lv_draw_arc_get_area() 74 lv_coord_t rin = radius - w; in lv_draw_arc_get_area()
|
D | lv_draw_mask.h | 160 lv_coord_t radius; /*The radius of the entry*/ member 171 lv_coord_t radius; member 353 …ius_init(lv_draw_mask_radius_param_t * param, const lv_area_t * rect, lv_coord_t radius, bool inv);
|
D | lv_draw_rect.h | 33 lv_coord_t radius; member
|
/lvgl-3.7.0/docs/widgets/extra/ |
D | meter.md | 37 …o a Scale. By default, the length of the line is the same as the scale's radius but `r_mod` change… 49 … an arc indicator. By default, the radius of the arc is the same as the scale's radius but `r_mod`… 67 - `radius`: radius of the arc
|
/lvgl-3.7.0/examples/widgets/btnmatrix/ |
D | lv_example_btnmatrix_2.c | 15 dsc->rect_dsc->radius = 0; in event_cb() 26 dsc->rect_dsc->radius = LV_RADIUS_CIRCLE; in event_cb()
|
D | lv_example_btnmatrix_2.py | 28 dsc.rect_dsc.radius = 0 42 dsc.rect_dsc.radius = lv.RADIUS.CIRCLE
|
/lvgl-3.7.0/docs/widgets/core/ |
D | arc.md | 77 - `radius`: radius of the arc 82 - `radius`: radius of the arc
|
/lvgl-3.7.0/src/core/ |
D | lv_obj_draw.h | 64 lv_coord_t radius; /**< E.g. the radius of an arc (not the corner radius).*/ member
|
/lvgl-3.7.0/examples/widgets/canvas/ |
D | lv_example_canvas_1.c | 11 rect_dsc.radius = 10; in lv_example_canvas_1()
|
D | lv_example_canvas_1.py | 7 rect_dsc.radius = 10
|
/lvgl-3.7.0/docs/overview/ |
D | drawing.md | 56 … This gives us the parameters for drawing, for example colors, widths, opacity, fonts, radius, etc. 66 …h a radiused transition. It's also used to create circles by setting the radius to large value (`L… 74 - **rounded rectangle** A mask is created real-time to add a radius to the corners. 174 lv_coord_t radius; // E.g. the radius of an arc (not the corner radius). 202 - It has a radius 213 E.g. if a widget has > 0 radius it might not cover an area, but you need to handle `radius` only…
|