lv_svg_render.h
API reference for lv_svg_render.h
Functions
libs/svg/lv_svg_render.h:94function
lv_svg_render_get_size
Get size of render objects.
uint32_t lv_svg_render_get_size(const lv_svg_render_obj_t *render)| Name | Type | Description |
|---|---|---|
render | const lv_svg_render_obj_t * | pointer to the SVG render object |
Returns: uint32_t — the bytes of SVG render objects
libs/svg/lv_svg_render.h:103function
lv_svg_render_get_viewport_size
Get viewport's width and height of the render object.
lv_result_t lv_svg_render_get_viewport_size(const lv_svg_render_obj_t *render, float *width, float *height)| Name | Type | Description |
|---|---|---|
render | const lv_svg_render_obj_t * | pointer to the SVG render object |
width | float * | pointer to save the width of the viewport of the SVG render object |
height | float * | pointer to save the height of the viewport of the SVG render object |
Returns: lv_result_t — lv_result_t, LV_RESULT_OK if success, LV_RESULT_INVALID if fail
Structs
struct
_lv_svg_render_obj
| Member | Type | Description |
|---|---|---|
next | struct _lv_svg_render_obj * | |
tag | lv_svg_tag_t | |
flags | uint32_t | |
id | char * | |
dsc | lv_vector_path_ctx_t | |
matrix | lv_matrix_t | |
head | struct _lv_svg_render_obj * | |
fill_ref | char * | |
stroke_ref | char * | |
clz | struct _lv_svg_render_class * |
struct
_lv_svg_render_class
| Member | Type | Description |
|---|---|---|
set_paint_ref | void(*)(struct _lv_svg_render_obj *obj, lv_vector_path_ctx_t *dsc, const struct _lv_svg_render_obj *target_obj, bool fill) | |
init | void(*)(struct _lv_svg_render_obj *obj, const lv_svg_node_t *node) | |
render | void(*)(const struct _lv_svg_render_obj *obj, lv_draw_vector_dsc_t *dsc, const lv_matrix_t *matrix) | |
set_attr | void(*)(struct _lv_svg_render_obj *obj, lv_vector_path_ctx_t *dsc, const lv_svg_attr_t *attr) | |
get_bounds | void(*)(const struct _lv_svg_render_obj *obj, lv_area_t *area) | |
get_size | void(*)(const struct _lv_svg_render_obj *obj, uint32_t *size) | |
destroy | void(*)(struct _lv_svg_render_obj *obj) |
struct
_lv_svg_render_hal
| Member | Type | Description |
|---|---|---|
load_image | void(*)(const char *image_url, lv_draw_image_dsc_t *img_dsc) | |
get_font_path | const char *(*)(const char *font_family) |
Typedefs
libs/svg/lv_svg_render.h:47typedef
lv_svg_render_obj_t
typedef struct _lv_svg_render_obj lv_svg_render_obj_tUsed by 4 functions
lv_svg_render_delete— paramrenderlv_svg_render_get_size— paramrenderlv_svg_render_get_viewport_size— paramrenderlv_draw_svg_render— paramrender
libs/svg/lv_svg_render.h:59typedef
lv_svg_render_class
typedef struct _lv_svg_render_class lv_svg_render_classlibs/svg/lv_svg_render.h:64typedef
lv_svg_render_hal_t
typedef struct _lv_svg_render_hal lv_svg_render_hal_tUsed by 1 function
lv_svg_render_init— paramhal
Macros
LV_SVG_RENDER_OBJ
#define LV_SVG_RENDER_OBJ(n) \
((lv_svg_render_obj_t*)(n))Dependencies
Indirect dependencies
lv_anim.hlv_area.hlv_array.hlv_assert.hlv_bidi.hlv_color.hlv_color_op.hlv_conf_kconfig.hlv_draw.hlv_draw_buf.hlv_draw_image.hlv_draw_vector.hlv_event.hlv_ext_data.hlv_flex.hlv_font.hlv_fs.hlv_grad.hlv_grid.hlv_image_decoder.hlv_image_dsc.hlv_layout.hlv_ll.hlv_log.hlv_math.hlv_matrix.hlv_mem.hlv_palette.hlv_profiler.hlv_profiler_builtin.hlv_sprintf.hlv_string.hlv_style.hlv_style_gen.hlv_symbol_def.hlv_text.hlv_tick.hlv_timer.hlv_tree.h
How is this guide?
Last updated on