lv_draw_sw_mask_private.h
API reference for lv_draw_sw_mask_private.h
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_draw_sw_mask.h
Summary
Functions
lv_draw_sw_mask_cleanup
Called by LVGL the rendering of a screen is ready to clean up the temporal (cache) data of the masks
void lv_draw_sw_mask_cleanup(void)Structs
struct
lv_draw_sw_mask_radius_circle_dsc_t
| Member | Type | Description |
|---|---|---|
buf | uint8_t * | |
cir_opa | lv_opa_t * | Opacity of values on the circumference of an 1/4 circle |
x_start_on_y | uint16_t * | The x coordinate of the circle for each y value |
opa_start_on_y | uint16_t * | The index of cir_opa for each y value |
life | int32_t | How many times the entry way used |
used_cnt | uint32_t | Like a semaphore to count the referencing masks |
radius | int32_t | The radius of the entry |
struct
_lv_draw_sw_mask_common_dsc_t
| Member | Type | Description |
|---|---|---|
cb | lv_draw_sw_mask_xcb_t | |
type | lv_draw_sw_mask_type_t |
struct
_lv_draw_sw_mask_line_param_t
| Member | Type | Description |
|---|---|---|
dsc | lv_draw_sw_mask_common_dsc_t | The first element must be the common descriptor |
p1 | lv_point_t | |
p2 | lv_point_t | |
side | lv_draw_sw_mask_line_side_t | |
cfg | struct _lv_draw_sw_mask_line_param_t | |
origo | lv_point_t | A point of the line |
xy_steep | int32_t | X / (1024*Y) steepness (X is 0..1023 range). What is the change of X in 1024 Y? |
yx_steep | int32_t | Y / (1024*X) steepness (Y is 0..1023 range). What is the change of Y in 1024 X? |
steep | int32_t | Helper which stores yx_steep for flat lines and xy_steep for steep (non flat) lines |
spx | int32_t | Steepness in 1 px in 0..255 range. Used only by flat lines. |
flat | uint8_t | 1: It's a flat line? (Near to horizontal) |
inv | uint8_t | Invert the mask. The default is: Keep the left part. It is used to select left/right/top/bottom |
struct
_lv_draw_sw_mask_angle_param_t
| Member | Type | Description |
|---|---|---|
dsc | lv_draw_sw_mask_common_dsc_t | The first element must be the common descriptor |
vertex_p | lv_point_t | |
start_angle | int32_t | |
end_angle | int32_t | |
cfg | struct _lv_draw_sw_mask_angle_param_t | |
start_line | lv_draw_sw_mask_line_param_t | |
end_line | lv_draw_sw_mask_line_param_t | |
delta_deg | uint16_t |
struct
_lv_draw_sw_mask_radius_param_t
| Member | Type | Description |
|---|---|---|
dsc | lv_draw_sw_mask_common_dsc_t | The first element must be the common descriptor |
rect | lv_area_t | |
radius | int32_t | |
outer | uint8_t | Invert the mask. 0: Keep the pixels inside. |
cfg | struct _lv_draw_sw_mask_radius_param_t | |
circle | lv_draw_sw_mask_radius_circle_dsc_t * |
struct
_lv_draw_sw_mask_fade_param_t
| Member | Type | Description |
|---|---|---|
dsc | lv_draw_sw_mask_common_dsc_t | The first element must be the common descriptor |
coords | lv_area_t | |
y_top | int32_t | |
y_bottom | int32_t | |
opa_top | lv_opa_t | |
opa_bottom | lv_opa_t | |
cfg | struct _lv_draw_sw_mask_fade_param_t |
struct
_lv_draw_sw_mask_map_param_t
| Member | Type | Description |
|---|---|---|
dsc | lv_draw_sw_mask_common_dsc_t | The first element must be the common descriptor |
coords | lv_area_t | |
map | const lv_opa_t * | |
cfg | struct _lv_draw_sw_mask_map_param_t |
Typedefs
lv_draw_sw_mask_radius_circle_dsc_arr_t
typedef lv_draw_sw_mask_radius_circle_dsc_t lv_draw_sw_mask_radius_circle_dsc_arr_t[4]Dependencies
How is this guide?
Last updated on