lv_draw_sw_grad.h
API reference for lv_draw_sw_grad.h
Summary
Functions
draw/sw/lv_draw_sw_grad.h:53function
lv_draw_sw_grad_get
Get a gradient cache from the given parameters
lv_draw_sw_grad_calc_t * lv_draw_sw_grad_get(const lv_grad_dsc_t *gradient, int32_t w, int32_t h)| Name | Type |
|---|---|
gradient | const lv_grad_dsc_t * |
w | int32_t |
h | int32_t |
draw/sw/lv_draw_sw_grad.h:85function
lv_draw_sw_grad_linear_get_line
Calculate a line segment of a linear gradient
void lv_draw_sw_grad_linear_get_line(lv_grad_dsc_t *dsc, int32_t xp, int32_t yp, int32_t width, lv_draw_sw_grad_calc_t *result)| Name | Type | Description |
|---|---|---|
dsc | lv_grad_dsc_t * | gradient descriptor |
xp | int32_t | starting point x coordinate in gradient space |
yp | int32_t | starting point y coordinate in gradient space |
width | int32_t | width of the line segment in pixels |
result | lv_draw_sw_grad_calc_t * | color buffer for the resulting line segment |
draw/sw/lv_draw_sw_grad.h:110function
lv_draw_sw_grad_radial_get_line
Calculate a line segment of a radial gradient
void lv_draw_sw_grad_radial_get_line(lv_grad_dsc_t *dsc, int32_t xp, int32_t yp, int32_t width, lv_draw_sw_grad_calc_t *result)| Name | Type | Description |
|---|---|---|
dsc | lv_grad_dsc_t * | gradient descriptor |
xp | int32_t | starting point x coordinate in gradient space |
yp | int32_t | starting point y coordinate in gradient space |
width | int32_t | width of the line segment in pixels |
result | lv_draw_sw_grad_calc_t * | color buffer for the resulting line segment |
draw/sw/lv_draw_sw_grad.h:135function
lv_draw_sw_grad_conical_get_line
Calculate a line segment of a conical gradient
void lv_draw_sw_grad_conical_get_line(lv_grad_dsc_t *dsc, int32_t xp, int32_t yp, int32_t width, lv_draw_sw_grad_calc_t *result)| Name | Type | Description |
|---|---|---|
dsc | lv_grad_dsc_t * | gradient descriptor |
xp | int32_t | starting point x coordinate in gradient space |
yp | int32_t | starting point y coordinate in gradient space |
width | int32_t | width of the line segment in pixels |
result | lv_draw_sw_grad_calc_t * | color buffer for the resulting line segment |
Structs
struct
lv_draw_sw_grad_calc_t
| Member | Type | Description |
|---|---|---|
color_map | lv_color_t * | |
opa_map | lv_opa_t * | |
size | uint32_t |
Used by 4 functions
lv_draw_sw_grad_cleanup— paramgradlv_draw_sw_grad_linear_get_line— paramresultlv_draw_sw_grad_radial_get_line— paramresultlv_draw_sw_grad_conical_get_line— paramresult
Dependencies
Indirect dependencies
lv_anim.hlv_area.hlv_assert.hlv_bidi.hlv_color_op.hlv_conf_internal.hlv_conf_kconfig.hlv_draw_buf.hlv_ext_data.hlv_flex.hlv_font.hlv_grad.hlv_grid.hlv_image_dsc.hlv_layout.hlv_ll.hlv_log.hlv_math.hlv_mem.hlv_palette.hlv_sprintf.hlv_string.hlv_style_gen.hlv_symbol_def.hlv_text.hlv_tick.hlv_timer.hlv_types.h
How is this guide?
Last updated on