lv_draw_nanovg_private.h
API reference for lv_draw_nanovg_private.h
Functions
lv_nanovg_fb_get_image_handle
Get image handle from framebuffer
int lv_nanovg_fb_get_image_handle(struct NVGLUframebuffer *fb)| Name | Type | Description |
|---|---|---|
fb | struct NVGLUframebuffer * | the framebuffer to get the image handle from |
Returns: int — the image handle
lv_draw_nanovg_3d
Draw 3D texture on a NanoVG context
void lv_draw_nanovg_3d(lv_draw_task_t *t, const lv_draw_3d_dsc_t *dsc, const lv_area_t *coords)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a drawing task |
dsc | const lv_draw_3d_dsc_t * | pointer to a 3D draw descriptor |
coords | const lv_area_t * | the coordinates of the 3D texture |
lv_draw_nanovg_arc
Draw arc on a NanoVG context
void lv_draw_nanovg_arc(lv_draw_task_t *t, const lv_draw_arc_dsc_t *dsc, const lv_area_t *coords)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a drawing task |
dsc | const lv_draw_arc_dsc_t * | pointer to an arc descriptor |
coords | const lv_area_t * | the coordinates of the arc |
lv_draw_nanovg_border
Draw border on a NanoVG context
void lv_draw_nanovg_border(lv_draw_task_t *t, const lv_draw_border_dsc_t *dsc, const lv_area_t *coords)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a drawing task |
dsc | const lv_draw_border_dsc_t * | pointer to a border descriptor |
coords | const lv_area_t * | the coordinates of the border |
lv_draw_nanovg_box_shadow
Draw box on a NanoVG context
void lv_draw_nanovg_box_shadow(lv_draw_task_t *t, const lv_draw_box_shadow_dsc_t *dsc, const lv_area_t *coords)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a drawing task |
dsc | const lv_draw_box_shadow_dsc_t * | pointer to a box descriptor |
coords | const lv_area_t * | the coordinates of the box |
lv_draw_nanovg_fill
Fill a rectangle on a NanoVG context
void lv_draw_nanovg_fill(lv_draw_task_t *t, const lv_draw_fill_dsc_t *dsc, const lv_area_t *coords)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a drawing task |
dsc | const lv_draw_fill_dsc_t * | pointer to a fill descriptor |
coords | const lv_area_t * | the coordinates of the rectangle |
lv_draw_nanovg_image
Draw image on a NanoVG context
void lv_draw_nanovg_image(lv_draw_task_t *t, const lv_draw_image_dsc_t *dsc, const lv_area_t *coords, int image_handle)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a drawing task |
dsc | const lv_draw_image_dsc_t * | pointer to an image descriptor |
coords | const lv_area_t * | the coordinates of the image |
image_handle | int | the handle of the image to draw |
lv_draw_nanovg_label_init
Initialize draw label on a NanoVG context
void lv_draw_nanovg_label_init(lv_draw_nanovg_unit_t *u)| Name | Type | Description |
|---|---|---|
u | lv_draw_nanovg_unit_t * | pointer to a NanoVG unit |
lv_draw_nanovg_label_deinit
Deinitialize draw label on a NanoVG context
void lv_draw_nanovg_label_deinit(lv_draw_nanovg_unit_t *u)| Name | Type | Description |
|---|---|---|
u | lv_draw_nanovg_unit_t * | pointer to a NanoVG unit |
lv_draw_nanovg_letter
Draw letter on a NanoVG context
void lv_draw_nanovg_letter(lv_draw_task_t *t, const lv_draw_letter_dsc_t *dsc, const lv_area_t *coords)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a drawing task |
dsc | const lv_draw_letter_dsc_t * | pointer to a letter descriptor |
coords | const lv_area_t * | the coordinates of the letter |
lv_draw_nanovg_label
Draw label on a NanoVG context
void lv_draw_nanovg_label(lv_draw_task_t *t, const lv_draw_label_dsc_t *dsc, const lv_area_t *coords)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a drawing task |
dsc | const lv_draw_label_dsc_t * | pointer to a label descriptor |
coords | const lv_area_t * | the coordinates of the label |
lv_draw_nanovg_layer
Draw layer on a NanoVG context
void lv_draw_nanovg_layer(lv_draw_task_t *t, const lv_draw_image_dsc_t *draw_dsc, const lv_area_t *coords)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a drawing task |
draw_dsc | const lv_draw_image_dsc_t * | pointer to an image descriptor |
coords | const lv_area_t * | the coordinates of the layer |
lv_draw_nanovg_line
Draw line on a NanoVG context
void lv_draw_nanovg_line(lv_draw_task_t *t, const lv_draw_line_dsc_t *dsc)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a drawing task |
dsc | const lv_draw_line_dsc_t * | pointer to a line descriptor |
lv_draw_nanovg_triangle
Draw triangle on a NanoVG context
void lv_draw_nanovg_triangle(lv_draw_task_t *t, const lv_draw_triangle_dsc_t *dsc)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a drawing task |
dsc | const lv_draw_triangle_dsc_t * | pointer to a triangle descriptor |
lv_draw_nanovg_mask_rect
Draw mask rectangles on a NanoVG context
void lv_draw_nanovg_mask_rect(lv_draw_task_t *t, const lv_draw_mask_rect_dsc_t *dsc)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a drawing task |
dsc | const lv_draw_mask_rect_dsc_t * | pointer to a mask descriptor |
lv_draw_nanovg_blur_init
Initialize the blur draw unit state on the given nanovg unit
void lv_draw_nanovg_blur_init(lv_draw_nanovg_unit_t *u)| Name | Type | Description |
|---|---|---|
u | lv_draw_nanovg_unit_t * | pointer to the nanovg unit |
lv_draw_nanovg_blur_deinit
Deinitialize the blur draw unit state on the given nanovg unit
void lv_draw_nanovg_blur_deinit(lv_draw_nanovg_unit_t *u)| Name | Type | Description |
|---|---|---|
u | lv_draw_nanovg_unit_t * | pointer to the nanovg unit |
lv_draw_nanovg_blur
Apply a separable gaussian blur to the current layer using a fragment shader
void lv_draw_nanovg_blur(lv_draw_task_t *t, const lv_draw_blur_dsc_t *dsc, const lv_area_t *coords)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a drawing task |
dsc | const lv_draw_blur_dsc_t * | pointer to a blur descriptor |
coords | const lv_area_t * | the coordinates of the area to blur |
lv_draw_nanovg_vector
Draw vector graphics on a NanoVG context
void lv_draw_nanovg_vector(lv_draw_task_t *t, const lv_draw_vector_dsc_t *dsc)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a drawing task |
dsc | const lv_draw_vector_dsc_t * | pointer to a vector descriptor |
lv_nanovg_grad_to_paint
Convert a gradient to a paint.
bool lv_nanovg_grad_to_paint(NVGcontext *ctx, const lv_vector_gradient_t *grad, NVGpaint *paint)| Name | Type | Description |
|---|---|---|
ctx | NVGcontext * | the nanovg context |
grad | const lv_vector_gradient_t * | the gradient descriptor |
paint | NVGpaint * | the paint to store the result |
lv_nanovg_draw_grad
Draw a gradient.
void lv_nanovg_draw_grad(NVGcontext *ctx, const lv_vector_gradient_t *grad, enum NVGwinding winding, enum NVGcompositeOperation composite_operation)| Name | Type | Description |
|---|---|---|
ctx | NVGcontext * | the nanovg context |
grad | const lv_vector_gradient_t * | the gradient descriptor |
winding | enum NVGwinding | the fill rule |
composite_operation | enum NVGcompositeOperation | the blend mode |
lv_nanovg_draw_grad_helper
Draw a gradient with helper.
void lv_nanovg_draw_grad_helper(NVGcontext *ctx, const lv_area_t *area, const lv_grad_dsc_t *grad_dsc, enum NVGwinding winding, enum NVGcompositeOperation composite_operation)| Name | Type | Description |
|---|---|---|
ctx | NVGcontext * | the nanovg context |
area | const lv_area_t * | the area to draw the gradient on |
grad_dsc | const lv_grad_dsc_t * | the gradient descriptor |
winding | enum NVGwinding | the fill rule |
composite_operation | enum NVGcompositeOperation | the blend mode |
Structs
_lv_draw_nanovg_unit_t
| Member | Type | Description |
|---|---|---|
base_unit | lv_draw_unit_t | |
current_layer | lv_layer_t * | |
vg | NVGcontext * | |
is_started | bool | |
image_buf | lv_draw_buf_t * | |
image_cache | lv_cache_t * | |
image_pending | struct _lv_pending_t * | |
image_uncached_pending | struct _lv_pending_t * | |
image_drop_ll | lv_ll_t | |
image_drop_src | const void * | |
letter_cache | lv_cache_t * | |
letter_pending | struct _lv_pending_t * | |
fbo_cache | lv_cache_t * | |
blur_state | struct NVGLUblurState * |
Used by 13 functions
lv_nanovg_fbo_cache_init— paramulv_nanovg_fbo_cache_deinit— paramulv_nanovg_fbo_cache_get— paramulv_nanovg_fbo_cache_release— paramulv_nanovg_image_cache_init— paramulv_nanovg_image_cache_deinit— paramulv_nanovg_image_cache_get_handle— paramulv_nanovg_image_cache_drop— paramulv_nanovg_utils_init— paramulv_nanovg_utils_deinit— paramulv_nanovg_end_frame— paramulv_nanovg_clean_up— paramulv_nanovg_reshape_global_image— paramu
Typedefs
lv_draw_nanovg_unit_t
typedef struct _lv_draw_nanovg_unit_t lv_draw_nanovg_unit_tUsed by 4 functions
lv_draw_nanovg_label_init— paramulv_draw_nanovg_label_deinit— paramulv_draw_nanovg_blur_init— paramulv_draw_nanovg_blur_deinit— paramu
Macros
NANOVG_GLES2_IMPLEMENTATION
#define NANOVG_GLES2_IMPLEMENTATIONDependencies
Last updated on