Lines Matching refs:grad
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
256 lv_draw_rect_grad_strip_key_t key = rect_grad_strip_key_create(grad); in lv_draw_sdl_rect_grad_strip_obtain()
265 pixels[i] = lv_gradient_calculate(grad, 256, i); in lv_draw_sdl_rect_grad_strip_obtain()
267 int width = grad->dir == LV_GRAD_DIR_VER ? 1 : 256; in lv_draw_sdl_rect_grad_strip_obtain()
268 int height = grad->dir == LV_GRAD_DIR_VER ? 256 : 1; in lv_draw_sdl_rect_grad_strip_obtain()
416 const lv_grad_dsc_t * grad, bool blend_mod) in draw_bg_grad_simple() argument
421 if(grad->dir == LV_GRAD_DIR_VER) { in draw_bg_grad_simple()
445 …SDL_Texture * grad_texture = lv_draw_sdl_rect_grad_strip_obtain(ctx, grad, &grad_texture_in_cache); in draw_bg_grad_simple()
952 static lv_draw_rect_grad_frag_key_t rect_grad_frag_key_create(const lv_grad_dsc_t * grad, lv_coord_… in rect_grad_frag_key_create() argument
958 key.stops_count = grad->stops_count; in rect_grad_frag_key_create()
959 key.dir = grad->dir; in rect_grad_frag_key_create()
960 for(uint8_t i = 0; i < grad->stops_count; i++) { in rect_grad_frag_key_create()
961 key.stops[i].frac = grad->stops[i].frac; in rect_grad_frag_key_create()
962 key.stops[i].color = grad->stops[i].color; in rect_grad_frag_key_create()
970 static lv_draw_rect_grad_strip_key_t rect_grad_strip_key_create(const lv_grad_dsc_t * grad) in rect_grad_strip_key_create() argument
975 key.stops_count = grad->stops_count; in rect_grad_strip_key_create()
976 key.dir = grad->dir; in rect_grad_strip_key_create()
977 for(uint8_t i = 0; i < grad->stops_count; i++) { in rect_grad_strip_key_create()
978 key.stops[i].frac = grad->stops[i].frac; in rect_grad_strip_key_create()
979 key.stops[i].color = grad->stops[i].color; in rect_grad_strip_key_create()