Lines Matching refs:state
42 void lv_xml_parser_state_init(lv_xml_parser_state_t * state) in lv_xml_parser_state_init() argument
44 lv_memzero(state, sizeof(lv_xml_parser_state_t)); in lv_xml_parser_state_init()
45 lv_ll_init(&state->ctx.style_ll, sizeof(lv_xml_style_t)); in lv_xml_parser_state_init()
46 lv_ll_init(&state->ctx.const_ll, sizeof(lv_xml_const_t)); in lv_xml_parser_state_init()
47 lv_ll_init(&state->ctx.param_ll, sizeof(lv_xml_param_t)); in lv_xml_parser_state_init()
48 lv_ll_init(&state->parent_ll, sizeof(lv_obj_t *)); in lv_xml_parser_state_init()
51 void lv_xml_parser_start_section(lv_xml_parser_state_t * state, const char * name) in lv_xml_parser_start_section() argument
55 state->section = LV_XML_PARSER_SECTION_API; in lv_xml_parser_start_section()
59 state->section = LV_XML_PARSER_SECTION_CONSTS; in lv_xml_parser_start_section()
63 state->section = LV_XML_PARSER_SECTION_STYLES; in lv_xml_parser_start_section()
67 state->section = LV_XML_PARSER_SECTION_VIEW; in lv_xml_parser_start_section()
72 void lv_xml_parser_end_section(lv_xml_parser_state_t * state, const char * name) in lv_xml_parser_end_section() argument
80 state->section = LV_XML_PARSER_SECTION_NONE; in lv_xml_parser_end_section()
84 void * lv_xml_state_get_parent(lv_xml_parser_state_t * state) in lv_xml_state_get_parent() argument
86 return state->parent; in lv_xml_state_get_parent()
89 void * lv_xml_state_get_item(lv_xml_parser_state_t * state) in lv_xml_state_get_item() argument
91 return state->item; in lv_xml_state_get_item()