Home
last modified time | relevance | path

Searched refs:grad (Results 1 – 9 of 9) sorted by relevance

/lvgl-3.4.0/src/draw/sw/
Dlv_draw_sw_dither.c20 LV_ATTRIBUTE_FAST_MEM void lv_dither_none(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_coord_t … in lv_dither_none() argument
24 if(grad == NULL || grad->filled) return; in lv_dither_none()
26 grad->map[i] = lv_color_hex(grad->hmap[i].full); in lv_dither_none()
28 grad->filled = 1; in lv_dither_none()
43 LV_ATTRIBUTE_FAST_MEM void lv_dither_ordered_hor(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_c… in lv_dither_ordered_hor() argument
57 lv_color32_t tmp = grad->hmap[LV_CLAMP(0, j - 4, grad->size)]; in lv_dither_ordered_hor()
63 grad->map[j] = lv_color_hex(t.full); in lv_dither_ordered_hor()
66 LV_ATTRIBUTE_FAST_MEM void lv_dither_ordered_ver(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_c… in lv_dither_ordered_ver() argument
77 lv_color32_t tmp = grad->hmap[LV_CLAMP(0, y - 4, grad->size)]; in lv_dither_ordered_ver()
87 grad->map[j] = lv_color_hex(t.full); in lv_dither_ordered_ver()
[all …]
Dlv_draw_sw_dither.h38 typedef void (*lv_dither_func_t)(struct _lv_gradient_cache_t * grad, lv_coord_t x, lv_coord_t y, lv…
48 LV_ATTRIBUTE_FAST_MEM void lv_dither_none(struct _lv_gradient_cache_t * grad, lv_coord_t x, lv_coor…
50 LV_ATTRIBUTE_FAST_MEM void lv_dither_ordered_hor(struct _lv_gradient_cache_t * grad, const lv_coord…
52 LV_ATTRIBUTE_FAST_MEM void lv_dither_ordered_ver(struct _lv_gradient_cache_t * grad, const lv_coord…
56 LV_ATTRIBUTE_FAST_MEM void lv_dither_err_diff_hor(struct _lv_gradient_cache_t * grad, const lv_coor…
58 LV_ATTRIBUTE_FAST_MEM void lv_dither_err_diff_ver(struct _lv_gradient_cache_t * grad, const lv_coor…
Dlv_draw_sw_gradient.h91 void lv_gradient_cleanup(lv_grad_t * grad);
Dlv_draw_sw_rect.c172 lv_grad_t * grad = lv_gradient_get(&dsc->bg_grad, coords_bg_w, coords_bg_h); in draw_bg() local
173 if(grad && grad_dir == LV_GRAD_DIR_HOR) { in draw_bg()
174 blend_dsc.src_buf = grad->map + clipped_coords.x1 - bg_coords.x1; in draw_bg()
183 blend_dsc.src_buf = grad->map; in draw_bg()
186 if(grad && dither_mode == LV_DITHER_NONE) { in draw_bg()
187 grad->filled = 0; /*Should we force refilling it each draw call ?*/ in draw_bg()
234 if(dither_func) dither_func(grad, blend_area.x1, h - bg_coords.y1, grad_size); in draw_bg()
236 if(grad_dir == LV_GRAD_DIR_VER) blend_dsc.color = grad->map[h - bg_coords.y1]; in draw_bg()
260 if(dither_func) dither_func(grad, blend_area.x1, top_y - bg_coords.y1, grad_size); in draw_bg()
262 if(grad_dir == LV_GRAD_DIR_VER) blend_dsc.color = grad->map[top_y - bg_coords.y1]; in draw_bg()
[all …]
Dlv_draw_sw_gradient.c348 void lv_gradient_cleanup(lv_grad_t * grad) in lv_gradient_cleanup() argument
350 if(grad->not_cached) { in lv_gradient_cleanup()
351 lv_mem_free(grad); in lv_gradient_cleanup()
/lvgl-3.4.0/examples/styles/
Dlv_example_style_2.c15 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.4.0/examples/widgets/label/
Dlv_example_label_4.c54 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.4.0/src/core/
Dlv_obj_draw.c61 const lv_grad_dsc_t * grad = lv_obj_get_style_bg_grad(obj, part); in lv_obj_init_draw_rect_dsc() local
62 if(grad && grad->dir != LV_GRAD_DIR_NONE) { in lv_obj_init_draw_rect_dsc()
63 lv_memcpy(&draw_dsc->bg_grad, grad, sizeof(*grad)); in lv_obj_init_draw_rect_dsc()
/lvgl-3.4.0/docs/porting/
Dgpu.md173   if(lv_draw_mask_is_any(coords) == false && dsc->grad == NULL && dsc->bg_img_src == NULL &&