lv_svg.h
API reference for lv_svg.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_svg_private.h
Summary
Functions
public/image/lv_svg.h:33function
lv_svg_load_data
Loading SVG data and creating the DOM tree.
lv_svg_node_t * lv_svg_load_data(const char *svg_data, uint32_t data_len)| Name | Type | Description |
|---|---|---|
svg_data | const char * | pointer to the SVG data |
data_len | uint32_t | the SVG data length |
public/image/lv_svg.h:41function
lv_svg_node_create
Create an SVG DOM node.
lv_svg_node_t * lv_svg_node_create(lv_svg_node_t *parent)| Name | Type | Description |
|---|---|---|
parent | lv_svg_node_t * | pointer to the parent node May be NULL.. When null, this function creates the document root |
Returns: lv_svg_node_t * — true: an new SVG DOM node, false: NULL
public/image/lv_svg.h:48function
lv_draw_svg
Draw an SVG document to a layer.
void lv_draw_svg(lv_layer_t *layer, const lv_svg_node_t *svg_doc)| Name | Type | Description |
|---|---|---|
layer | lv_layer_t * | pointer to the target layer |
svg_doc | const lv_svg_node_t * | pointer to the SVG document to draw |
public/image/lv_svg.h:55function
lv_svg_node_delete
Delete an SVG DOM subtree.
void lv_svg_node_delete(lv_svg_node_t *node)| Name | Type | Description |
|---|---|---|
node | lv_svg_node_t * | pointer to an SVG DOM subtree May be NULL. |
Macros
LV_SVG_NODE_CHILD
#define LV_SVG_NODE_CHILD(n, i) \
((lv_svg_node_t *)(LV_TREE_NODE((n))->children[i]))LV_SVG_NODE
#define LV_SVG_NODE(n) \
((lv_svg_node_t*)(n))Dependencies
Last updated on