/lvgl-3.7.0/src/draw/sw/ |
D | lv_draw_sw_dither.c | 19 void LV_ATTRIBUTE_FAST_MEM lv_dither_none(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_coord_t … in lv_dither_none() argument 23 if(grad == NULL || grad->filled) return; in lv_dither_none() 25 grad->map[i] = lv_color_hex(grad->hmap[i].full); in lv_dither_none() 27 grad->filled = 1; in lv_dither_none() 41 void LV_ATTRIBUTE_FAST_MEM lv_dither_ordered_hor(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_c… in lv_dither_ordered_hor() argument 55 lv_color32_t tmp = grad->hmap[LV_CLAMP(0, j - 4, grad->size)]; in lv_dither_ordered_hor() 61 grad->map[j] = lv_color_hex(t.full); in lv_dither_ordered_hor() 65 void LV_ATTRIBUTE_FAST_MEM lv_dither_ordered_ver(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_c… in lv_dither_ordered_ver() argument 76 lv_color32_t tmp = grad->hmap[LV_CLAMP(0, y - 4, grad->size)]; in lv_dither_ordered_ver() 86 grad->map[j] = lv_color_hex(t.full); in lv_dither_ordered_ver() [all …]
|
D | lv_draw_sw_dither.h | 37 typedef void (*lv_dither_func_t)(struct _lv_gradient_cache_t * grad, lv_coord_t x, lv_coord_t y, lv… 46 void /* LV_ATTRIBUTE_FAST_MEM */ lv_dither_none(struct _lv_gradient_cache_t * grad, lv_coord_t x, l… 49 void /* LV_ATTRIBUTE_FAST_MEM */ lv_dither_ordered_hor(struct _lv_gradient_cache_t * grad, const lv… 51 void /* LV_ATTRIBUTE_FAST_MEM */ lv_dither_ordered_ver(struct _lv_gradient_cache_t * grad, const lv… 55 void /* LV_ATTRIBUTE_FAST_MEM */ lv_dither_err_diff_hor(struct _lv_gradient_cache_t * grad, const l… 57 void /* LV_ATTRIBUTE_FAST_MEM */ lv_dither_err_diff_ver(struct _lv_gradient_cache_t * grad, const l…
|
D | lv_draw_sw_gradient.h | 89 void lv_gradient_cleanup(lv_grad_t * grad);
|
D | lv_draw_sw_rect.c | 167 lv_grad_t * grad = lv_gradient_get(&dsc->bg_grad, coords_bg_w, coords_bg_h); in draw_bg() local 168 if(grad && grad_dir == LV_GRAD_DIR_HOR) { in draw_bg() 169 blend_dsc.src_buf = grad->map + clipped_coords.x1 - bg_coords.x1; in draw_bg() 178 blend_dsc.src_buf = grad->map; in draw_bg() 181 if(grad && dither_mode == LV_DITHER_NONE) { in draw_bg() 182 grad->filled = 0; /*Should we force refilling it each draw call ?*/ in draw_bg() 229 if(dither_func) dither_func(grad, blend_area.x1, h - bg_coords.y1, grad_size); in draw_bg() 231 if(grad_dir == LV_GRAD_DIR_VER) blend_dsc.color = grad->map[h - bg_coords.y1]; in draw_bg() 254 if(dither_func) dither_func(grad, blend_area.x1, top_y - bg_coords.y1, grad_size); in draw_bg() 256 if(grad_dir == LV_GRAD_DIR_VER) blend_dsc.color = grad->map[top_y - bg_coords.y1]; in draw_bg() [all …]
|
D | lv_draw_sw_gradient.c | 339 void lv_gradient_cleanup(lv_grad_t * grad) in lv_gradient_cleanup() argument 341 if(grad->not_cached) { in lv_gradient_cleanup() 342 lv_mem_free(grad); in lv_gradient_cleanup()
|
/lvgl-3.7.0/examples/styles/ |
D | lv_example_style_2.c | 15 static lv_grad_dsc_t grad; in lv_example_style_2() local 16 grad.dir = LV_GRAD_DIR_VER; in lv_example_style_2() 17 grad.stops_count = 2; in lv_example_style_2() 18 grad.stops[0].color = lv_palette_lighten(LV_PALETTE_GREY, 1); in lv_example_style_2() 19 grad.stops[1].color = lv_palette_main(LV_PALETTE_BLUE); in lv_example_style_2() 22 grad.stops[0].frac = 128; in lv_example_style_2() 23 grad.stops[1].frac = 192; in lv_example_style_2() 25 lv_style_set_bg_grad(&style, &grad); in lv_example_style_2()
|
/lvgl-3.7.0/examples/widgets/label/ |
D | lv_example_label_4.c | 54 lv_obj_t * grad = lv_obj_create(lv_scr_act()); in lv_example_label_4() local 55 lv_obj_set_size(grad, MASK_WIDTH, MASK_HEIGHT); in lv_example_label_4() 56 lv_obj_center(grad); in lv_example_label_4() 57 lv_obj_set_style_bg_color(grad, lv_color_hex(0xff0000), 0); in lv_example_label_4() 58 lv_obj_set_style_bg_grad_color(grad, lv_color_hex(0x0000ff), 0); in lv_example_label_4() 59 lv_obj_set_style_bg_grad_dir(grad, LV_GRAD_DIR_HOR, 0); in lv_example_label_4() 60 lv_obj_add_event_cb(grad, add_mask_event_cb, LV_EVENT_ALL, mask_map); in lv_example_label_4()
|
/lvgl-3.7.0/src/draw/sdl/ |
D | lv_draw_sdl_rect.h | 78 SDL_Texture * lv_draw_sdl_rect_grad_frag_obtain(lv_draw_sdl_ctx_t * ctx, const lv_grad_dsc_t * grad… 88 …w_sdl_rect_grad_strip_obtain(lv_draw_sdl_ctx_t * ctx, const lv_grad_dsc_t * grad, bool * in_cache);
|
D | lv_draw_sdl_rect.c | 80 const lv_grad_dsc_t * grad, bool blend_mod); 109 static lv_draw_rect_grad_frag_key_t rect_grad_frag_key_create(const lv_grad_dsc_t * grad, lv_coord_… 112 static lv_draw_rect_grad_strip_key_t rect_grad_strip_key_create(const lv_grad_dsc_t * grad); 199 SDL_Texture * lv_draw_sdl_rect_grad_frag_obtain(lv_draw_sdl_ctx_t * ctx, const lv_grad_dsc_t * grad… 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() 228 draw_bg_grad_simple(ctx, &blend_coords, &draw_area, grad, true); in lv_draw_sdl_rect_grad_frag_obtain() 233 draw_bg_grad_simple(ctx, &blend_coords, &draw_area, grad, true); in lv_draw_sdl_rect_grad_frag_obtain() 238 draw_bg_grad_simple(ctx, &blend_coords, &draw_area, grad, true); in lv_draw_sdl_rect_grad_frag_obtain() 243 draw_bg_grad_simple(ctx, &blend_coords, &draw_area, grad, true); in lv_draw_sdl_rect_grad_frag_obtain() 254 …aw_sdl_rect_grad_strip_obtain(lv_draw_sdl_ctx_t * ctx, const lv_grad_dsc_t * grad, bool * in_cache) in lv_draw_sdl_rect_grad_strip_obtain() argument [all …]
|
/lvgl-3.7.0/src/core/ |
D | lv_obj_draw.c | 62 const lv_grad_dsc_t * grad = lv_obj_get_style_bg_grad(obj, part); in lv_obj_init_draw_rect_dsc() local 63 if(grad && grad->dir != LV_GRAD_DIR_NONE) { in lv_obj_init_draw_rect_dsc() 64 lv_memcpy(&draw_dsc->bg_grad, grad, sizeof(*grad)); in lv_obj_init_draw_rect_dsc()
|
/lvgl-3.7.0/docs/porting/ |
D | gpu.md | 169 if(lv_draw_mask_is_any(coords) == false && dsc->grad == NULL && dsc->bg_img_src == NULL &&
|