Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 162) sorted by relevance

1234567

/lvgl-latest/src/libs/svg/
Dlv_svg_token.c68 static void _set_state(_lv_svg_parser_state_t * state, uint32_t bit) in _set_state() argument
70 state->flags |= bit; in _set_state()
73 static void _clear_state(_lv_svg_parser_state_t * state, uint32_t bit) in _clear_state() argument
75 state->flags &= ~bit; in _clear_state()
78 static bool _is_state(_lv_svg_parser_state_t * state, uint32_t bit) in _is_state() argument
80 return state->flags & bit; in _is_state()
83 static void _set_tag_state(_lv_svg_parser_state_t * state, uint32_t bit) in _set_tag_state() argument
85 state->flags = (state->flags & ~SVG_TAG_MASK) | bit; in _set_tag_state()
88 static void _set_quote_state(_lv_svg_parser_state_t * state, uint32_t bit) in _set_quote_state() argument
90 state->flags = (state->flags & ~SVG_QUOTE_MASK) | (bit << 3); in _set_quote_state()
[all …]
/lvgl-latest/src/libs/expat/
Dxmlrole.c118 # define setTopLevel(state) \ argument
119 ((state)->handler \
120 = ((state)->documentEntity ? internalSubset : externalSubset1))
122 # define setTopLevel(state) ((state)->handler = internalSubset) argument
125 typedef int PTRCALL PROLOG_HANDLER(PROLOG_STATE *state, int tok,
141 static int FASTCALL common(PROLOG_STATE *state, int tok);
144 prolog0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, in prolog0() argument
148 state->handler = prolog1; in prolog0()
151 state->handler = prolog1; in prolog0()
154 state->handler = prolog1; in prolog0()
[all …]
/lvgl-latest/src/libs/barcode/
Dcode128.c377 static struct code128_step * code128_alloc_step(struct code128_state * state) in code128_alloc_step() argument
379 if(state->todo_ix >= state->allocated_steps) { in code128_alloc_step()
380 state->allocated_steps += 1024; in code128_alloc_step()
381 state->steps = (struct code128_step *) CODE128_REALLOC(state->steps, in code128_alloc_step()
382state->allocated_steps * sizeof(struct code128_step)); in code128_alloc_step()
385 struct code128_step * step = &state->steps[state->todo_ix]; in code128_alloc_step()
391 static void code128_do_step(struct code128_state * state) in code128_do_step() argument
393 struct code128_step * step = &state->steps[state->current_ix]; in code128_do_step()
396 if((step->len < state->maxlength) || in code128_do_step()
397 (state->best_ix < 0 && step->len == state->maxlength)) { in code128_do_step()
[all …]
/lvgl-latest/src/stdlib/builtin/
Dlv_mem_core_builtin.c39 #define state LV_GLOBAL_DEFAULT()->tlsf_state macro
74 lv_mutex_init(&state.mutex); in lv_mem_init()
79 state.tlsf = lv_tlsf_create_with_pool((void *)LV_MEM_POOL_ALLOC(LV_MEM_SIZE), LV_MEM_SIZE); in lv_mem_init()
83 state.tlsf = lv_tlsf_create_with_pool((void *)work_mem_int, LV_MEM_SIZE); in lv_mem_init()
86 state.tlsf = lv_tlsf_create_with_pool((void *)LV_MEM_ADR, LV_MEM_SIZE); in lv_mem_init()
89 lv_ll_init(&state.pool_ll, sizeof(lv_pool_t)); in lv_mem_init()
92 lv_pool_t * pool_p = lv_ll_ins_tail(&state.pool_ll); in lv_mem_init()
94 *pool_p = lv_tlsf_get_pool(state.tlsf); in lv_mem_init()
103 lv_ll_clear(&state.pool_ll); in lv_mem_deinit()
104 lv_tlsf_destroy(state.tlsf); in lv_mem_deinit()
[all …]
/lvgl-latest/src/libs/thorvg/
DtvgLottieParserHandler.cpp65 if (state != kEnteringArray) { in enterArray()
76 if (state == kExitingArray) { in nextArrayValue()
81 if (state == kExitingObject) return false; in nextArrayValue()
82 if (state == kError || state == kHasKey) { in nextArrayValue()
92 if (state != kHasNumber) { in getInt()
104 if (state != kHasNumber) { in getFloat()
116 if (state != kHasString) { in getString()
136 if (state != kHasBool) { in getBool()
148 if (state != kHasNull) { in getNull()
172 if (state != kEnteringObject) { in enterObject()
[all …]
DtvgLottieParserHandler.h75 LookaheadParsingState state = kInit; member
86 state = kHasNull; in Null()
93 state = kHasBool; in Bool()
100 state = kHasNumber; in Int()
107 state = kHasNumber; in Uint()
114 state = kHasNumber; in Int64()
121 state = kHasNumber; in Uint64()
128 state = kHasNumber; in Double()
140 state = kHasString; in String()
147 state = kEnteringObject; in StartObject()
[all …]
/lvgl-latest/src/others/xml/
Dlv_xml_parser.c42 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()
[all …]
Dlv_xml_component.c36 static void process_const_element(lv_xml_parser_state_t * state, const char ** attrs);
37 static void process_prop_element(lv_xml_parser_state_t * state, const char ** attrs);
60 lv_obj_t * lv_xml_component_process(lv_xml_parser_state_t * state, const char * name, const char **… in lv_xml_component_process() argument
64 lv_obj_t * item = lv_xml_create_from_ctx(state->parent, &state->ctx, ctx, attrs); in lv_xml_component_process()
71 state->item = item; in lv_xml_component_process()
72 ctx->root_widget->apply_cb(state, attrs); in lv_xml_component_process()
90 lv_xml_parser_state_t state; in lv_xml_component_register_from_data() local
91 lv_xml_parser_state_init(&state); in lv_xml_component_register_from_data()
92 state.ctx.name = name; in lv_xml_component_register_from_data()
96 XML_SetUserData(parser, &state); in lv_xml_component_register_from_data()
[all …]
Dlv_xml.c95 lv_xml_parser_state_t state; in lv_xml_create_from_ctx() local
96 lv_xml_parser_state_init(&state); in lv_xml_create_from_ctx()
97 state.ctx = *ctx; in lv_xml_create_from_ctx()
98 state.parent = parent; in lv_xml_create_from_ctx()
99 state.parent_attrs = attrs; in lv_xml_create_from_ctx()
100 state.parent_ctx = parent_ctx; in lv_xml_create_from_ctx()
102 lv_obj_t ** parent_node = lv_ll_ins_head(&state.parent_ll); in lv_xml_create_from_ctx()
107 XML_SetUserData(parser, &state); in lv_xml_create_from_ctx()
118 state.item = state.view; in lv_xml_create_from_ctx()
121 ctx->root_widget->apply_cb(&state, attrs); in lv_xml_create_from_ctx()
[all …]
Dlv_xml_parser.h64 void lv_xml_parser_state_init(lv_xml_parser_state_t * state);
66 void lv_xml_parser_start_section(lv_xml_parser_state_t * state, const char * name);
68 void lv_xml_parser_end_section(lv_xml_parser_state_t * state, const char * name);
70 void * lv_xml_state_get_parent(lv_xml_parser_state_t * state);
72 void * lv_xml_state_get_item(lv_xml_parser_state_t * state);
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_gradient.c286 lv_grad_radial_state_t * state = lv_malloc(sizeof(lv_grad_radial_state_t)); in lv_gradient_radial_setup() local
287 dsc->state = state; in lv_gradient_radial_setup()
308 state->cgrad = lv_gradient_get(dsc, 256, 0); in lv_gradient_radial_setup()
310 state->x0 = start.x; in lv_gradient_radial_setup()
311 state->y0 = start.y; in lv_gradient_radial_setup()
312 state->r0 = r_start; in lv_gradient_radial_setup()
316 state->a4 = lv_sqr(dr) << 2; in lv_gradient_radial_setup()
317 state->bpx = 0; in lv_gradient_radial_setup()
318 state->bpy = 0; in lv_gradient_radial_setup()
319 state->bc = (state->r0 * dr) << 1; in lv_gradient_radial_setup()
[all …]
/lvgl-latest/src/others/xml/parsers/
Dlv_xml_tabview_parser.c39 void * lv_xml_tabview_create(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_tabview_create() argument
42 void * item = lv_tabview_create(lv_xml_state_get_parent(state)); in lv_xml_tabview_create()
48 void lv_xml_tabview_apply(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_tabview_apply() argument
50 void * item = lv_xml_state_get_item(state); in lv_xml_tabview_apply()
52 …lv_xml_obj_apply(state, attrs); /*Apply the common properties, e.g. width, height, styles flags et… in lv_xml_tabview_apply()
63 void * lv_xml_tabview_tab_bar_create(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_tabview_tab_bar_create() argument
66 void * item = lv_tabview_get_tab_bar(lv_xml_state_get_parent(state)); in lv_xml_tabview_tab_bar_create()
71 void lv_xml_tabview_tab_bar_apply(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_tabview_tab_bar_apply() argument
74 lv_xml_obj_apply(state, attrs); in lv_xml_tabview_tab_bar_apply()
77 void * lv_xml_tabview_tab_create(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_tabview_tab_create() argument
[all …]
Dlv_xml_chart_parser.c42 void * lv_xml_chart_create(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_chart_create() argument
45 void * item = lv_chart_create(lv_xml_state_get_parent(state)); in lv_xml_chart_create()
51 void lv_xml_chart_apply(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_chart_apply() argument
53 void * item = lv_xml_state_get_item(state); in lv_xml_chart_apply()
55 …lv_xml_obj_apply(state, attrs); /*Apply the common properties, e.g. width, height, styles flags et… in lv_xml_chart_apply()
73 void * lv_xml_chart_series_create(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_chart_series_create() argument
77 …void * item = lv_chart_add_series(lv_xml_state_get_parent(state), lv_color_hex(lv_xml_strtol(color… in lv_xml_chart_series_create()
82 void lv_xml_chart_series_apply(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_chart_series_apply() argument
84 LV_UNUSED(state); in lv_xml_chart_series_apply()
87 lv_obj_t * chart = lv_xml_state_get_parent(state); in lv_xml_chart_series_apply()
[all …]
Dlv_xml_dropdown_parser.c39 void * lv_xml_dropdown_create(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_dropdown_create() argument
42 void * item = lv_dropdown_create(lv_xml_state_get_parent(state)); in lv_xml_dropdown_create()
48 void lv_xml_dropdown_apply(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_dropdown_apply() argument
50 void * item = lv_xml_state_get_item(state); in lv_xml_dropdown_apply()
52 …lv_xml_obj_apply(state, attrs); /*Apply the common properties, e.g. width, height, styles flags et… in lv_xml_dropdown_apply()
65 void * lv_xml_dropdown_list_create(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_dropdown_list_create() argument
69 return lv_dropdown_get_list(lv_xml_state_get_parent(state)); in lv_xml_dropdown_list_create()
72 void lv_xml_dropdown_list_apply(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_dropdown_list_apply() argument
74 LV_UNUSED(state); in lv_xml_dropdown_list_apply()
77 lv_xml_obj_apply(state, attrs); in lv_xml_dropdown_list_apply()
Dlv_xml_chart_parser.h27 void * lv_xml_chart_create(lv_xml_parser_state_t * state, const char ** attrs);
28 void lv_xml_chart_apply(lv_xml_parser_state_t * state, const char ** attrs);
29 void * lv_xml_chart_series_create(lv_xml_parser_state_t * state, const char ** attrs);
30 void lv_xml_chart_series_apply(lv_xml_parser_state_t * state, const char ** attrs);
31 void * lv_xml_chart_cursor_create(lv_xml_parser_state_t * state, const char ** attrs);
32 void lv_xml_chart_cursor_apply(lv_xml_parser_state_t * state, const char ** attrs);
33 void * lv_xml_chart_axis_create(lv_xml_parser_state_t * state, const char ** attrs);
34 void lv_xml_chart_axis_apply(lv_xml_parser_state_t * state, const char ** attrs);
Dlv_xml_table_parser.c40 void * lv_xml_table_create(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_table_create() argument
43 void * item = lv_table_create(lv_xml_state_get_parent(state)); in lv_xml_table_create()
49 void lv_xml_table_apply(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_table_apply() argument
51 void * item = lv_xml_state_get_item(state); in lv_xml_table_apply()
53 …lv_xml_obj_apply(state, attrs); /*Apply the common properties, e.g. width, height, styles flags et… in lv_xml_table_apply()
70 void * lv_xml_table_column_create(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_table_column_create() argument
75 return lv_xml_state_get_parent(state);; in lv_xml_table_column_create()
78 void lv_xml_table_column_apply(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_table_column_apply() argument
80 LV_UNUSED(state); in lv_xml_table_column_apply()
83 lv_obj_t * table = lv_xml_state_get_parent(state); in lv_xml_table_column_apply()
[all …]
Dlv_xml_table_parser.h27 void * lv_xml_table_create(lv_xml_parser_state_t * state, const char ** attrs);
28 void lv_xml_table_apply(lv_xml_parser_state_t * state, const char ** attrs);
29 void * lv_xml_table_column_create(lv_xml_parser_state_t * state, const char ** attrs);
30 void lv_xml_table_column_apply(lv_xml_parser_state_t * state, const char ** attrs);
31 void * lv_xml_table_cell_create(lv_xml_parser_state_t * state, const char ** attrs);
32 void lv_xml_table_cell_apply(lv_xml_parser_state_t * state, const char ** attrs);
Dlv_xml_tabview_parser.h27 void * lv_xml_tabview_create(lv_xml_parser_state_t * state, const char ** attrs);
28 void lv_xml_tabview_apply(lv_xml_parser_state_t * state, const char ** attrs);
29 void * lv_xml_tabview_tab_bar_create(lv_xml_parser_state_t * state, const char ** attrs);
30 void lv_xml_tabview_tab_bar_apply(lv_xml_parser_state_t * state, const char ** attrs);
31 void * lv_xml_tabview_tab_create(lv_xml_parser_state_t * state, const char ** attrs);
32 void lv_xml_tabview_tab_apply(lv_xml_parser_state_t * state, const char ** attrs);
Dlv_xml_label_parser.c40 void * lv_xml_label_create(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_label_create() argument
43 void * item = lv_label_create(lv_xml_state_get_parent(state)); in lv_xml_label_create()
48 void lv_xml_label_apply(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_label_apply() argument
50 void * item = lv_xml_state_get_item(state); in lv_xml_label_apply()
52 …lv_xml_obj_apply(state, attrs); /*Apply the common properties, e.g. width, height, styles flags et… in lv_xml_label_apply()
Dlv_xml_button_parser.c40 void * lv_xml_button_create(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_button_create() argument
44 void * item = lv_button_create(lv_xml_state_get_parent(state)); in lv_xml_button_create()
49 void lv_xml_button_apply(lv_xml_parser_state_t * state, const char ** attrs) in lv_xml_button_apply() argument
52 lv_xml_obj_apply(state, attrs); in lv_xml_button_apply()
/lvgl-latest/src/widgets/imagebutton/
Dlv_imagebutton.c37 static lv_imagebutton_state_t suggest_state(lv_obj_t * imagebutton, lv_imagebutton_state_t state);
75 void lv_imagebutton_set_src(lv_obj_t * obj, lv_imagebutton_state_t state, const void * src_left, co… in lv_imagebutton_set_src() argument
86 update_src_info(&imagebutton->src_left[state], src_left); in lv_imagebutton_set_src()
87 update_src_info(&imagebutton->src_mid[state], src_mid); in lv_imagebutton_set_src()
88 update_src_info(&imagebutton->src_right[state], src_right); in lv_imagebutton_set_src()
93 void lv_imagebutton_set_state(lv_obj_t * obj, lv_imagebutton_state_t state) in lv_imagebutton_set_state() argument
98 if(state == LV_IMAGEBUTTON_STATE_PRESSED || in lv_imagebutton_set_state()
99 state == LV_IMAGEBUTTON_STATE_CHECKED_PRESSED) obj_state |= LV_STATE_PRESSED; in lv_imagebutton_set_state()
100 if(state == LV_IMAGEBUTTON_STATE_DISABLED || in lv_imagebutton_set_state()
101 state == LV_IMAGEBUTTON_STATE_CHECKED_DISABLED) obj_state |= LV_STATE_DISABLED; in lv_imagebutton_set_state()
[all …]
Dlv_imagebutton.h68 void lv_imagebutton_set_src(lv_obj_t * imagebutton, lv_imagebutton_state_t state, const void * src_…
77 void lv_imagebutton_set_state(lv_obj_t * imagebutton, lv_imagebutton_state_t state);
89 const void * lv_imagebutton_get_src_left(lv_obj_t * imagebutton, lv_imagebutton_state_t state);
97 const void * lv_imagebutton_get_src_middle(lv_obj_t * imagebutton, lv_imagebutton_state_t state);
105 const void * lv_imagebutton_get_src_right(lv_obj_t * imagebutton, lv_imagebutton_state_t state);
/lvgl-latest/src/drivers/libinput/
Dlv_xkb.c66 if(dsc->state) { in lv_xkb_deinit()
67 xkb_state_unref(dsc->state); in lv_xkb_deinit()
68 dsc->state = NULL; in lv_xkb_deinit()
84 switch(xkb_state_key_get_one_sym(dsc->state, keycode)) { in lv_xkb_process_key()
137 int size = xkb_state_key_get_utf8(dsc->state, keycode, NULL, 0) + 1; in lv_xkb_process_key()
139 xkb_state_key_get_utf8(dsc->state, keycode, buffer, size); in lv_xkb_process_key()
144 xkb_state_update_key(dsc->state, keycode, down ? XKB_KEY_DOWN : XKB_KEY_UP); in lv_xkb_process_key()
166 if(dsc->state) { in _set_keymap()
167 xkb_state_unref(dsc->state); in _set_keymap()
168 dsc->state = NULL; in _set_keymap()
[all …]
/lvgl-latest/src/misc/
Dlv_timer.c24 #define state LV_GLOBAL_DEFAULT()->timer_state macro
25 #define timer_ll_p &(state.timer_ll)
67 lv_timer_state_t * state_p = &state; in lv_timer_handler()
86 state.run_cnt++; in lv_timer_handler()
87 if(state.run_cnt > 100) { in lv_timer_handler()
88 state.run_cnt = 0; in lv_timer_handler()
152 lv_timer_state_t * state_p = &state; in lv_timer_periodic_handler()
181 state.timer_created = true; in lv_timer_create()
197 state.timer_deleted = true; in lv_timer_delete()
254 state.lv_timer_run = en; in lv_timer_enable()
[all …]
/lvgl-latest/src/tick/
Dlv_tick.c16 #define state LV_GLOBAL_DEFAULT()->tick_state macro
40 lv_tick_state_t * state_p = &state; in lv_tick_inc()
48 lv_tick_state_t * state_p = &state; in lv_tick_get()
85 if(state.delay_cb) { in lv_delay_ms()
86 state.delay_cb(ms); in lv_delay_ms()
103 state.tick_get_cb = cb; in lv_tick_set_cb()
108 state.delay_cb = cb; in lv_delay_set_cb()

1234567