Searched refs:bg_grad (Results 1 – 13 of 13) sorted by relevance
/lvgl-3.7.0/src/draw/ |
D | lv_draw_rect.c | 41 dsc->bg_grad.stops[0].color = lv_color_white(); in lv_draw_rect_dsc_init() 42 dsc->bg_grad.stops[1].color = lv_color_black(); in lv_draw_rect_dsc_init() 43 dsc->bg_grad.stops[1].frac = 0xFF; in lv_draw_rect_dsc_init() 44 dsc->bg_grad.stops_count = 2; in lv_draw_rect_dsc_init()
|
D | lv_draw_rect.h | 39 lv_grad_dsc_t bg_grad; member
|
/lvgl-3.7.0/src/extra/widgets/led/ |
D | lv_led.c | 182 rect_dsc.bg_grad.stops[0].color = lv_color_mix(led->color, lv_color_black(), in lv_led_event() 183 … lv_color_brightness(rect_dsc.bg_grad.stops[0].color)); in lv_led_event() 184 rect_dsc.bg_grad.stops[1].color = lv_color_mix(led->color, lv_color_black(), in lv_led_event() 185 … lv_color_brightness(rect_dsc.bg_grad.stops[1].color)); in lv_led_event() 192 …rect_dsc.bg_grad.stops[0].color = lv_color_mix(rect_dsc.bg_grad.stops[0].color, lv_color_black()… in lv_led_event() 193 …rect_dsc.bg_grad.stops[1].color = lv_color_mix(rect_dsc.bg_grad.stops[1].color, lv_color_black()… in lv_led_event()
|
/lvgl-3.7.0/examples/widgets/canvas/ |
D | lv_example_canvas_1.c | 13 rect_dsc.bg_grad.dir = LV_GRAD_DIR_HOR; in lv_example_canvas_1() 14 rect_dsc.bg_grad.stops[0].color = lv_palette_main(LV_PALETTE_RED); in lv_example_canvas_1() 15 rect_dsc.bg_grad.stops[1].color = lv_palette_main(LV_PALETTE_BLUE); in lv_example_canvas_1()
|
D | lv_example_canvas_1.py | 9 rect_dsc.bg_grad.dir = lv.GRAD_DIR.HOR 10 rect_dsc.bg_grad.stops[0].color = lv.palette_main(lv.PALETTE.RED) 11 rect_dsc.bg_grad.stops[1].color = lv.palette_main(lv.PALETTE.BLUE)
|
/lvgl-3.7.0/src/core/ |
D | lv_obj_draw.c | 64 lv_memcpy(&draw_dsc->bg_grad, grad, sizeof(*grad)); in lv_obj_init_draw_rect_dsc() 67 draw_dsc->bg_grad.dir = lv_obj_get_style_bg_grad_dir(obj, part); in lv_obj_init_draw_rect_dsc() 68 if(draw_dsc->bg_grad.dir != LV_GRAD_DIR_NONE) { in lv_obj_init_draw_rect_dsc() 69 … draw_dsc->bg_grad.stops[0].color = lv_obj_get_style_bg_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc() 70 … draw_dsc->bg_grad.stops[1].color = lv_obj_get_style_bg_grad_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc() 71 draw_dsc->bg_grad.stops[0].frac = lv_obj_get_style_bg_main_stop(obj, part); in lv_obj_init_draw_rect_dsc() 72 draw_dsc->bg_grad.stops[1].frac = lv_obj_get_style_bg_grad_stop(obj, part); in lv_obj_init_draw_rect_dsc() 74 draw_dsc->bg_grad.dither = lv_obj_get_style_bg_dither_mode(obj, part); in lv_obj_init_draw_rect_dsc()
|
/lvgl-3.7.0/src/draw/nxp/vglite/ |
D | lv_draw_vglite_rect.c | 124 if(dsc->bg_grad.dir != (lv_grad_dir_t)LV_GRAD_DIR_NONE) { in lv_gpu_nxp_vglite_draw_bg() 130 uint8_t cnt = LV_MAX(dsc->bg_grad.stops_count, 2); in lv_gpu_nxp_vglite_draw_bg() 132 … col32[i].full = lv_color_to32(dsc->bg_grad.stops[i].color); /*Convert color to RGBA8888*/ in lv_gpu_nxp_vglite_draw_bg() 133 stops[i] = dsc->bg_grad.stops[i].frac; in lv_gpu_nxp_vglite_draw_bg() 155 if(dsc->bg_grad.dir == (lv_grad_dir_t)LV_GRAD_DIR_VER) { in lv_gpu_nxp_vglite_draw_bg() 172 if(dsc->bg_grad.dir == (lv_grad_dir_t)LV_GRAD_DIR_NONE) { in lv_gpu_nxp_vglite_draw_bg() 188 if(dsc->bg_grad.dir != (lv_grad_dir_t)LV_GRAD_DIR_NONE) { in lv_gpu_nxp_vglite_draw_bg()
|
D | lv_draw_vglite.c | 424 lv_grad_dir_t grad_dir = dsc->bg_grad.dir; in lv_draw_vglite_bg() 426 dsc->bg_color : dsc->bg_grad.stops[0].color; in lv_draw_vglite_bg() 427 if(bg_color.full == dsc->bg_grad.stops[1].color.full) in lv_draw_vglite_bg()
|
/lvgl-3.7.0/src/draw/sdl/ |
D | lv_draw_sdl_rect.c | 372 if(dsc->bg_grad.dir == LV_GRAD_DIR_NONE) { in draw_bg_color() 375 else if(dsc->bg_grad.stops_count == 1) { in draw_bg_color() 376 lv_color_to_sdl_color(&dsc->bg_grad.stops[0].color, &bg_color); in draw_bg_color() 380 draw_bg_grad_simple(ctx, coords, draw_area, &dsc->bg_grad, false); in draw_bg_color() 469 …SDL_Texture * grad_texture = lv_draw_sdl_rect_grad_frag_obtain(ctx, &dsc->bg_grad, bg_w, bg_h, rad… in draw_bg_grad_radius() 485 draw_bg_grad_simple(ctx, coords, &part_area, &dsc->bg_grad, false); in draw_bg_grad_radius() 489 draw_bg_grad_simple(ctx, coords, &part_area, &dsc->bg_grad, false); in draw_bg_grad_radius() 497 draw_bg_grad_simple(ctx, coords, &part_area, &dsc->bg_grad, false); in draw_bg_grad_radius() 508 draw_bg_grad_simple(ctx, coords, &part_area, &dsc->bg_grad, false); in draw_bg_grad_radius() 512 draw_bg_grad_simple(ctx, coords, &part_area, &dsc->bg_grad, false); in draw_bg_grad_radius() [all …]
|
/lvgl-3.7.0/src/draw/sw/ |
D | lv_draw_sw_rect.c | 115 lv_grad_dir_t grad_dir = dsc->bg_grad.dir; in draw_bg() 116 …lv_color_t bg_color = grad_dir == LV_GRAD_DIR_NONE ? dsc->bg_color : dsc->bg_grad.stops[0].colo… in draw_bg() 117 if(bg_color.full == dsc->bg_grad.stops[1].color.full) grad_dir = LV_GRAD_DIR_NONE; in draw_bg() 167 lv_grad_t * grad = lv_gradient_get(&dsc->bg_grad, coords_bg_w, coords_bg_h); in draw_bg() 173 lv_dither_mode_t dither_mode = dsc->bg_grad.dither; in draw_bg()
|
/lvgl-3.7.0/src/extra/widgets/chart/ |
D | lv_chart.c | 1214 col_dsc.bg_grad.dir = LV_GRAD_DIR_NONE; in draw_series_bar()
|
/lvgl-3.7.0/docs/overview/ |
D | style-props.md | 273 ### bg_grad subsection
|
/lvgl-3.7.0/docs/ |
D | CHANGELOG.md | 183 - fix(style): fix trasition on bg_grad color [`48d7878`](https://github.com/lvgl/lvgl/commit/48d787…
|