/lvgl-3.5.0/src/core/ |
D | lv_obj_draw.c | 39 void lv_obj_init_draw_rect_dsc(lv_obj_t * obj, uint32_t part, lv_draw_rect_dsc_t * draw_dsc) in lv_obj_init_draw_rect_dsc() argument 45 draw_dsc->bg_opa = LV_OPA_TRANSP; in lv_obj_init_draw_rect_dsc() 46 draw_dsc->bg_img_opa = LV_OPA_TRANSP; in lv_obj_init_draw_rect_dsc() 47 draw_dsc->border_opa = LV_OPA_TRANSP; in lv_obj_init_draw_rect_dsc() 48 draw_dsc->outline_opa = LV_OPA_TRANSP; in lv_obj_init_draw_rect_dsc() 49 draw_dsc->shadow_opa = LV_OPA_TRANSP; in lv_obj_init_draw_rect_dsc() 55 if(part != LV_PART_MAIN) draw_dsc->blend_mode = lv_obj_get_style_blend_mode(obj, part); in lv_obj_init_draw_rect_dsc() 57 draw_dsc->radius = lv_obj_get_style_radius(obj, part); in lv_obj_init_draw_rect_dsc() 59 if(draw_dsc->bg_opa != LV_OPA_TRANSP) { in lv_obj_init_draw_rect_dsc() 60 draw_dsc->bg_opa = lv_obj_get_style_bg_opa(obj, part); in lv_obj_init_draw_rect_dsc() [all …]
|
D | lv_obj_draw.h | 83 void lv_obj_init_draw_rect_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_rect_dsc_t * draw_dsc… 93 … lv_obj_init_draw_label_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_label_dsc_t * draw_dsc); 102 void lv_obj_init_draw_img_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_img_dsc_t * draw_dsc); 112 void lv_obj_init_draw_line_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_line_dsc_t * draw_dsc… 121 void lv_obj_init_draw_arc_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_arc_dsc_t * draw_dsc);
|
D | lv_obj.c | 502 lv_draw_rect_dsc_t draw_dsc; in lv_obj_draw() local 503 lv_draw_rect_dsc_init(&draw_dsc); in lv_obj_draw() 506 draw_dsc.border_post = 1; in lv_obj_draw() 509 lv_obj_init_draw_rect_dsc(obj, LV_PART_MAIN, &draw_dsc); in lv_obj_draw() 523 part_dsc.rect_dsc = &draw_dsc; in lv_obj_draw() 530 …bool clip_corner = (lv_obj_get_style_clip_corner(obj, LV_PART_MAIN) && draw_dsc.radius != 0) ? tru… in lv_obj_draw() 531 const void * bg_img_src = draw_dsc.bg_img_src; in lv_obj_draw() 533 draw_dsc.bg_img_src = NULL; in lv_obj_draw() 537 lv_draw_rect(draw_ctx, &draw_dsc, &coords); in lv_obj_draw() 543 lv_draw_mask_radius_init(mp, &obj->coords, draw_dsc.radius, false); in lv_obj_draw() [all …]
|
D | lv_refr.c | 151 lv_draw_rect_dsc_t draw_dsc; in lv_obj_redraw() local 152 lv_draw_rect_dsc_init(&draw_dsc); in lv_obj_redraw() 153 draw_dsc.bg_color.full = debug_color.full; in lv_obj_redraw() 154 draw_dsc.bg_opa = LV_OPA_20; in lv_obj_redraw() 155 draw_dsc.border_width = 1; in lv_obj_redraw() 156 draw_dsc.border_opa = LV_OPA_30; in lv_obj_redraw() 157 draw_dsc.border_color = debug_color; in lv_obj_redraw() 158 lv_draw_rect(draw_ctx, &draw_dsc, &obj_coords_ext); in lv_obj_redraw() 927 lv_draw_img_dsc_t draw_dsc; in refr_obj() local 928 lv_draw_img_dsc_init(&draw_dsc); in refr_obj() [all …]
|
/lvgl-3.5.0/src/draw/ |
D | lv_draw_triangle.c | 38 void lv_draw_polygon(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const l… in lv_draw_polygon() argument 41 draw_ctx->draw_polygon(draw_ctx, draw_dsc, points, point_cnt); in lv_draw_polygon() 44 void lv_draw_triangle(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const … in lv_draw_triangle() argument 47 draw_ctx->draw_polygon(draw_ctx, draw_dsc, points, 3); in lv_draw_triangle()
|
D | lv_draw_img.c | 28 …T_MEM static lv_res_t decode_and_draw(lv_draw_ctx_t * draw_ctx, const lv_draw_img_dsc_t * draw_dsc, 231 …T_MEM static lv_res_t decode_and_draw(lv_draw_ctx_t * draw_ctx, const lv_draw_img_dsc_t * draw_dsc, in decode_and_draw() argument 234 if(draw_dsc->opa <= LV_OPA_MIN) return LV_RES_OK; in decode_and_draw() 236 _lv_img_cache_entry_t * cdsc = _lv_img_cache_open(src, draw_dsc->recolor, draw_dsc->frame_id); in decode_and_draw() 248 if(draw_dsc->angle || draw_dsc->zoom != LV_IMG_ZOOM_NONE) { in decode_and_draw() 265 if(draw_dsc->angle || draw_dsc->zoom != LV_IMG_ZOOM_NONE) { in decode_and_draw() 269 …_lv_img_buf_get_transformed_area(&map_area_rot, w, h, draw_dsc->angle, draw_dsc->zoom, &draw_dsc->… in decode_and_draw() 288 lv_draw_img_decoded(draw_ctx, draw_dsc, coords, cdsc->dec_dsc.img_data, cf); in decode_and_draw() 331 lv_draw_img_decoded(draw_ctx, draw_dsc, &line, buf, cf); in decode_and_draw()
|
D | lv_draw.h | 85 lv_res_t (*draw_img)(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_img_dsc_t * draw_dsc, 96 void (*draw_polygon)(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, 115 … const lv_draw_img_dsc_t * draw_dsc, lv_img_cf_t cf, lv_color_t * cbuf, lv_opa_t * abuf); 120 …void (*draw_bg)(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const lv_ar… 173 const lv_draw_img_dsc_t * draw_dsc);
|
D | lv_draw_triangle.h | 30 void lv_draw_polygon(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const l… 33 void lv_draw_triangle(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const …
|
D | lv_draw_transform.c | 39 …lv_coord_t src_stride, const lv_draw_img_dsc_t * draw_dsc, lv_img_cf_t cf, lv_color_t * cbuf, lv_o… in lv_draw_transform() argument 47 …draw_ctx->draw_transform(draw_ctx, dest_area, src_buf, src_w, src_h, src_stride, draw_dsc, cf, cbu… in lv_draw_transform()
|
D | lv_draw_layer.c | 72 lv_draw_img_dsc_t * draw_dsc) in lv_draw_layer_blend() argument 74 if(draw_ctx->layer_blend) draw_ctx->layer_blend(draw_ctx, layer_ctx, draw_dsc); in lv_draw_layer_blend()
|
D | lv_draw_transform.h | 34 …lv_coord_t src_stride, const lv_draw_img_dsc_t * draw_dsc, lv_img_cf_t cf, lv_color_t * cbuf, lv_o…
|
D | lv_draw_layer.h | 66 lv_draw_img_dsc_t * draw_dsc);
|
/lvgl-3.5.0/src/draw/sdl/ |
D | lv_draw_sdl_layer.c | 88 const lv_draw_img_dsc_t * draw_dsc) in lv_draw_sdl_layer_blend() argument 98 … lv_area_zoom_to_sdl_rect(&layer_ctx->area_act, &trans_rect, draw_dsc->zoom, &draw_dsc->pivot); in lv_draw_sdl_layer_blend() 101 … lv_area_zoom_to_sdl_rect(&layer_ctx->area_full, &trans_rect, draw_dsc->zoom, &draw_dsc->pivot); in lv_draw_sdl_layer_blend() 109 SDL_Point center = {.x = draw_dsc->pivot.x, .y = draw_dsc->pivot.y}; in lv_draw_sdl_layer_blend() 111 SDL_SetTextureAlphaMod(transform_ctx->target, draw_dsc->opa); in lv_draw_sdl_layer_blend() 113 draw_dsc->angle, ¢er, SDL_FLIP_NONE); in lv_draw_sdl_layer_blend()
|
D | lv_draw_sdl_img.c | 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, 91 static void apply_recolor_opa(SDL_Texture * texture, const lv_draw_img_dsc_t * draw_dsc); 97 lv_res_t lv_draw_sdl_img_core(lv_draw_ctx_t * draw_ctx, const lv_draw_img_dsc_t * draw_dsc, in lv_draw_sdl_img_core() argument 104 …lv_draw_sdl_cache_key_head_img_t * key = lv_draw_sdl_texture_img_key_create(src, draw_dsc->frame_i… in lv_draw_sdl_img_core() 110 … lv_draw_sdl_img_load_texture(ctx, key, key_size, src, draw_dsc->frame_id, &texture, &header); in lv_draw_sdl_img_core() 119 draw_dsc->zoom, &draw_dsc->pivot); in lv_draw_sdl_img_core() 130 … has_composite = lv_draw_sdl_composite_begin(ctx, &zoomed_cords, clip, NULL, draw_dsc->blend_mode, in lv_draw_sdl_img_core() 143 draw_img_rounded(ctx, texture, header, draw_dsc, &t_coords, &t_clip, radius); in lv_draw_sdl_img_core() 146 draw_img_simple(ctx, texture, header, draw_dsc, &t_coords, &t_clip); in lv_draw_sdl_img_core() [all …]
|
D | lv_draw_sdl_polygon.c | 43 void lv_draw_sdl_polygon(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const lv_po… in lv_draw_sdl_polygon() argument 90 lv_color_to_sdl_color(&draw_dsc->bg_color, &color); in lv_draw_sdl_polygon() 92 SDL_SetTextureAlphaMod(texture, draw_dsc->bg_opa); in lv_draw_sdl_polygon()
|
D | lv_draw_sdl.c | 25 lv_res_t lv_draw_sdl_img_core(lv_draw_ctx_t * draw_ctx, const lv_draw_img_dsc_t * draw_dsc, 37 void lv_draw_sdl_polygon(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const lv_po…
|
/lvgl-3.5.0/src/draw/sw/ |
D | lv_draw_sw_img.c | 30 …lv_coord_t src_stride, const lv_draw_img_dsc_t * draw_dsc, lv_img_cf_t cf, lv_color_t * cbuf, lv_o… 45 …M void lv_draw_sw_img_decoded(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_img_dsc_t * draw_dsc, in lv_draw_sw_img_decoded() argument 53 bool transform = draw_dsc->angle != 0 || draw_dsc->zoom != LV_IMG_ZOOM_NONE ? true : false; in lv_draw_sw_img_decoded() 59 blend_dsc.opa = draw_dsc->opa; in lv_draw_sw_img_decoded() 60 blend_dsc.blend_mode = draw_dsc->blend_mode; in lv_draw_sw_img_decoded() 64 …if(!mask_any && !transform && cf == LV_IMG_CF_TRUE_COLOR && draw_dsc->recolor_opa == LV_OPA_TRANSP… in lv_draw_sw_img_decoded() 77 blend_dsc.color = draw_dsc->recolor; in lv_draw_sw_img_decoded() 84 …else if(!mask_any && !transform && cf == LV_IMG_CF_RGB565A8 && draw_dsc->recolor_opa == LV_OPA_TRA… in lv_draw_sw_img_decoded() 132 lv_draw_mask_res_t mask_res_def = (cf != LV_IMG_CF_TRUE_COLOR || draw_dsc->angle || in lv_draw_sw_img_decoded() 133 draw_dsc->zoom != LV_IMG_ZOOM_NONE) ? in lv_draw_sw_img_decoded() [all …]
|
D | lv_draw_sw.h | 64 …M void lv_draw_sw_img_decoded(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_img_dsc_t * draw_dsc, 70 void lv_draw_sw_polygon(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, 79 … const lv_draw_img_dsc_t * draw_dsc, lv_img_cf_t cf, lv_color_t * cbuf, lv_opa_t * abuf); 88 const lv_draw_img_dsc_t * draw_dsc);
|
D | lv_draw_sw_arc.c | 32 lv_draw_rect_dsc_t * draw_dsc; member 154 q_dsc.draw_dsc = &cir_dsc; in lv_draw_sw_arc() 246 lv_draw_rect(q->draw_ctx, q->draw_dsc, q->draw_area); in draw_quarter_0() 261 lv_draw_rect(q->draw_ctx, q->draw_dsc, q->draw_area); in draw_quarter_0() 274 lv_draw_rect(q->draw_ctx, q->draw_dsc, q->draw_area); in draw_quarter_0() 291 lv_draw_rect(q->draw_ctx, q->draw_dsc, q->draw_area); in draw_quarter_0() 313 lv_draw_rect(q->draw_ctx, q->draw_dsc, q->draw_area); in draw_quarter_1() 328 lv_draw_rect(q->draw_ctx, q->draw_dsc, q->draw_area); in draw_quarter_1() 341 lv_draw_rect(q->draw_ctx, q->draw_dsc, q->draw_area); in draw_quarter_1() 358 lv_draw_rect(q->draw_ctx, q->draw_dsc, q->draw_area); in draw_quarter_1() [all …]
|
D | lv_draw_sw_polygon.c | 47 void lv_draw_sw_polygon(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const lv_poi… in lv_draw_sw_polygon() argument 188 lv_draw_rect(draw_ctx, draw_dsc, &poly_coords); in lv_draw_sw_polygon() 200 LV_UNUSED(draw_dsc); in lv_draw_sw_polygon()
|
/lvgl-3.5.0/examples/event/ |
D | lv_example_event_4.c | 32 lv_draw_rect_dsc_t draw_dsc; in event_cb() local 33 lv_draw_rect_dsc_init(&draw_dsc); in event_cb() 34 draw_dsc.bg_color = lv_palette_main(LV_PALETTE_LIGHT_GREEN); in event_cb() 35 draw_dsc.bg_opa = LV_OPA_COVER; in event_cb() 46 lv_draw_polygon(draw_ctx, &draw_dsc, points, n); in event_cb()
|
/lvgl-3.5.0/src/draw/arm2d/ |
D | lv_gpu_arm2d.c | 303 if(draw_dsc->recolor_opa > LV_OPA_MIN) { \ 322 (color_int)draw_dsc->recolor.full, \ 323 draw_dsc->recolor_opa); \ 340 if(draw_dsc->recolor_opa > LV_OPA_MIN) { \ 359 (color_int)draw_dsc->recolor.full, \ 360 draw_dsc->recolor_opa); \ 441 const lv_draw_img_dsc_t * draw_dsc, 472 const lv_draw_img_dsc_t * draw_dsc, 913 const lv_draw_img_dsc_t * draw_dsc, in lv_draw_arm2d_img_decoded() argument 924 bool transform = draw_dsc->angle != 0 || draw_dsc->zoom != LV_IMG_ZOOM_NONE ? true : false; in lv_draw_arm2d_img_decoded() [all …]
|
/lvgl-3.5.0/src/widgets/ |
D | lv_canvas.h | 197 const lv_draw_rect_dsc_t * draw_dsc); 209 lv_draw_label_dsc_t * draw_dsc, const char * txt); 220 const lv_draw_img_dsc_t * draw_dsc); 230 const lv_draw_line_dsc_t * draw_dsc); 240 const lv_draw_rect_dsc_t * draw_dsc); 253 int32_t end_angle, const lv_draw_arc_dsc_t * draw_dsc);
|
D | lv_canvas.c | 175 lv_draw_img_dsc_t draw_dsc; in lv_canvas_transform() local 176 lv_draw_img_dsc_init(&draw_dsc); in lv_canvas_transform() 177 draw_dsc.angle = angle; in lv_canvas_transform() 178 draw_dsc.zoom = zoom; in lv_canvas_transform() 179 draw_dsc.pivot.x = pivot_x; in lv_canvas_transform() 180 draw_dsc.pivot.y = pivot_y; in lv_canvas_transform() 181 draw_dsc.antialias = antialias; in lv_canvas_transform() 194 &draw_dsc, canvas->dsc.header.cf, cbuf, abuf); in lv_canvas_transform() 517 const lv_draw_rect_dsc_t * draw_dsc) in lv_canvas_draw_rect() argument 541 draw_dsc->bg_color.full == ctransp.full) { in lv_canvas_draw_rect() [all …]
|
/lvgl-3.5.0/docs/widgets/core/ |
D | canvas.md | 46 - `lv_canvas_draw_rect(canvas, x, y, width, heigth, &draw_dsc)` 47 - `lv_canvas_draw_text(canvas, x, y, max_width, &draw_dsc, txt)` 48 - `lv_canvas_draw_img(canvas, x, y, &img_src, &draw_dsc)` 49 - `lv_canvas_draw_line(canvas, point_array, point_cnt, &draw_dsc)` 50 - `lv_canvas_draw_polygon(canvas, points_array, point_cnt, &draw_dsc)` 51 - `lv_canvas_draw_arc(canvas, x, y, radius, start_angle, end_angle, &draw_dsc)` 53 `draw_dsc` is a `lv_draw_rect/label/img/line/arc_dsc_t` variable which should be first initialized …
|