lv_svg_token.h
API reference for lv_svg_token.h
Functions
libs/svg/lv_svg_token.h:63function
_lv_svg_tokenizer
Parse SVG data and call a callback for each token.
bool _lv_svg_tokenizer(const char *svg_data, uint32_t len, svg_token_process cb, void *user_data)| Name | Type | Description |
|---|---|---|
svg_data | const char * | pointer to SVG data |
len | uint32_t | length of the SVG data |
cb | svg_token_process | callback function to be called for each token |
user_data | void * | custom data to be passed to the callback function |
Returns: bool — true: SVG data successfully parsed, false: error occurred
Enums
_lv_svg_token_type_t
| Name | Value |
|---|---|
LV_SVG_TOKEN_BEGIN | 0 |
LV_SVG_TOKEN_END | |
LV_SVG_TOKEN_CONTENT |
Structs
struct
_lv_svg_token_attr_t
| Member | Type | Description |
|---|---|---|
name_start | const char * | |
name_end | const char * | |
value_start | const char * | |
value_end | const char * |
struct
_lv_svg_token_t
| Member | Type | Description |
|---|---|---|
start | const char * | |
end | const char * | |
type | _lv_svg_token_type_t | |
flat | bool | |
cur_attr | _lv_svg_token_attr_t * | |
attrs | lv_array_t |
Used by 1 function
_lv_svg_parser_token— paramtoken
Typedefs
libs/svg/lv_svg_token.h:49typedef
svg_token_process
typedef bool(* svg_token_process) (_lv_svg_token_t *token, void *user_data)Used by 1 function
_lv_svg_tokenizer— paramcb
Macros
SVG_TOKEN_LEN
#define SVG_TOKEN_LEN(t) \
((t)->end - (t)->start)Dependencies
How is this guide?
Last updated on