/lvgl-latest/src/misc/ |
D | lv_lru.c | 47 static int lv_lru_cmp_keys(lv_lru_item_t * item, const void * key, uint32_t key_length); 50 static void lv_lru_remove_item(lv_lru_t * cache, lv_lru_item_t * prev, lv_lru_item_t * item, uint32… 106 lv_lru_item_t * item = NULL, * next = NULL; in lv_lru_delete() local 110 item = cache->items[i]; in lv_lru_delete() 111 while(item) { in lv_lru_delete() 112 next = (lv_lru_item_t *) item->next; in lv_lru_delete() 113 cache->value_free(item->value); in lv_lru_delete() 114 cache->key_free(item->key); in lv_lru_delete() 115 cache->free_memory += item->value_length; in lv_lru_delete() 116 lv_free(item); in lv_lru_delete() [all …]
|
D | lv_profiler_builtin.c | 193 lv_profiler_builtin_item_t * item = &profiler_ctx->item_arr[profiler_ctx->cur_index]; in lv_profiler_builtin_write() local 194 item->func = func; in lv_profiler_builtin_write() 195 item->tag = tag; in lv_profiler_builtin_write() 196 item->tick = profiler_ctx->config.tick_get_cb(); in lv_profiler_builtin_write() 199 item->tid = profiler_ctx->config.tid_get_cb(); in lv_profiler_builtin_write() 200 item->cpu = profiler_ctx->config.cpu_get_cb(); in lv_profiler_builtin_write() 243 lv_profiler_builtin_item_t * item = &profiler_ctx->item_arr[cur++]; in flush_no_lock() local 244 uint32_t sec = item->tick / tick_per_sec; in flush_no_lock() 245 uint32_t nsec = (item->tick % tick_per_sec) * (LV_PROFILER_TICK_PER_SEC_MAX / tick_per_sec); in flush_no_lock() 250 item->tid, in flush_no_lock() [all …]
|
/lvgl-latest/src/layouts/flex/ |
D | lv_flex.c | 34 lv_obj_t * item; member 256 lv_obj_t * item = lv_obj_get_child(cont, item_id); in find_track_end() local 257 while(item) { in find_track_end() 258 if(item_id != item_start_id && lv_obj_has_flag(item, LV_OBJ_FLAG_FLEX_IN_NEW_TRACK)) break; in find_track_end() 260 …if(!lv_obj_has_flag_any(item, LV_OBJ_FLAG_IGNORE_LAYOUT | LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATIN… in find_track_end() 261 uint8_t grow_value = lv_obj_get_style_flex_grow(item, LV_PART_MAIN); in find_track_end() 263 int32_t min_size = f->row ? lv_obj_get_style_min_width(item, LV_PART_MAIN) in find_track_end() 264 : lv_obj_get_style_min_height(item, LV_PART_MAIN); in find_track_end() 285 new_dsc[t->grow_item_cnt - 1].item = item; in find_track_end() 286 … new_dsc[t->grow_item_cnt - 1].min_size = f->row ? lv_obj_get_style_min_width(item, LV_PART_MAIN) in find_track_end() [all …]
|
/lvgl-latest/src/layouts/grid/ |
D | lv_grid.c | 61 static void item_repos(lv_obj_t * item, lv_grid_calc_t * c, item_repos_hint_t * hint); 211 lv_obj_t * item = cont->spec_attr->children[i]; in grid_update() local 212 item_repos(item, &c, &hint); in grid_update() 313 lv_obj_t * item = lv_obj_get_child(cont, ci); in calc_cols() local 314 …if(lv_obj_has_flag_any(item, LV_OBJ_FLAG_IGNORE_LAYOUT | LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING… in calc_cols() 315 uint32_t col_span = get_col_span(item); in calc_cols() 318 uint32_t col_pos = get_col_pos(item); in calc_cols() 321 size = LV_MAX(size, lv_obj_get_width(item)); in calc_cols() 402 lv_obj_t * item = lv_obj_get_child(cont, ci); in calc_rows() local 403 …if(lv_obj_has_flag_any(item, LV_OBJ_FLAG_IGNORE_LAYOUT | LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING… in calc_rows() [all …]
|
/lvgl-latest/src/draw/vg_lite/ |
D | lv_vg_lite_stroke.c | 68 static bool stroke_create_cb(stroke_item_t * item, void * user_data); 69 static void stroke_free_cb(stroke_item_t * item, void * user_data); 202 static bool stroke_create_cb(stroke_item_t * item, void * user_data) in stroke_create_cb() argument 205 LV_ASSERT_NULL(item); in stroke_create_cb() 208 if(item->lv.width <= 0) { in stroke_create_cb() 209 LV_LOG_WARN("stroke width error: %f", item->lv.width); in stroke_create_cb() 214 item->dash_pattern_type = DASH_PATTERN_TYPE_LV; in stroke_create_cb() 217 item->vg.path = lv_vg_lite_path_create(VG_LITE_FP32); in stroke_create_cb() 218 lv_vg_lite_path_append_path(item->vg.path, item->lv.path); in stroke_create_cb() 222 const uint32_t size = lv_array_size(&item->lv.dash_pattern); in stroke_create_cb() [all …]
|
D | lv_vg_lite_grad.c | 58 static bool grad_create_cb(grad_item_t * item, void * user_data); 59 static void grad_free_cb(grad_item_t * item, void * user_data); 382 static bool linear_grad_create(grad_item_t * item) in linear_grad_create() argument 386 vg_lite_error_t err = vg_lite_init_grad(&item->vg.linear); in linear_grad_create() 398 if(item->lv.stops_count > VLC_MAX_GRADIENT_STOPS) { in linear_grad_create() 399 … LV_LOG_WARN("Gradient stops limited: %d, max: %d", item->lv.stops_count, VLC_MAX_GRADIENT_STOPS); in linear_grad_create() 400 item->lv.stops_count = VLC_MAX_GRADIENT_STOPS; in linear_grad_create() 403 for(uint16_t i = 0; i < item->lv.stops_count; i++) { in linear_grad_create() 404 stops[i] = item->lv.stops[i].frac; in linear_grad_create() 405 const lv_color_t * c = &item->lv.stops[i].color; in linear_grad_create() [all …]
|
/lvgl-latest/src/others/xml/parsers/ |
D | lv_xml_slider_parser.c | 45 void * item = lv_slider_create(lv_xml_state_get_parent(state)); in lv_xml_slider_create() local 46 return item; in lv_xml_slider_create() 51 void * item = lv_xml_state_get_item(state); in lv_xml_slider_apply() local 58 if(lv_streq("value", name)) lv_slider_set_value(item, lv_xml_atoi(value), LV_ANIM_OFF); in lv_xml_slider_apply() 59 … if(lv_streq("left_value", name)) lv_slider_set_left_value(item, lv_xml_atoi(value), LV_ANIM_OFF); in lv_xml_slider_apply() 60 …if(lv_streq("orientation", name)) lv_slider_set_orientation(item, orentation_text_to_enum_value(va… in lv_xml_slider_apply() 61 if(lv_streq("mode", name)) lv_slider_set_mode(item, mode_text_to_enum_value(value)); in lv_xml_slider_apply() 62 …lv_streq("range_min", name)) lv_slider_set_range(item, lv_xml_atoi(value), lv_slider_get_max_value… in lv_xml_slider_apply() 63 …if(lv_streq("range_max", name)) lv_slider_set_range(item, lv_slider_get_min_value(item), lv_xml_at… in lv_xml_slider_apply() 70 lv_slider_set_range(item, v1, v2); in lv_xml_slider_apply()
|
D | lv_xml_obj_parser.c | 48 void * item = lv_obj_create(lv_xml_state_get_parent(state)); in lv_xml_obj_create() local 50 return item; in lv_xml_obj_create() 55 void * item = lv_xml_state_get_item(state); in lv_xml_obj_apply() local 61 if(lv_streq("x", name)) lv_obj_set_x(item, lv_xml_to_size(value)); in lv_xml_obj_apply() 62 else if(lv_streq("y", name)) lv_obj_set_y(item, lv_xml_to_size(value)); in lv_xml_obj_apply() 63 else if(lv_streq("width", name)) lv_obj_set_width(item, lv_xml_to_size(value)); in lv_xml_obj_apply() 64 else if(lv_streq("height", name)) lv_obj_set_height(item, lv_xml_to_size(value)); in lv_xml_obj_apply() 65 else if(lv_streq("align", name)) lv_obj_set_align(item, lv_xml_align_to_enum(value)); in lv_xml_obj_apply() 66 … else if(lv_streq("flex_flow", name)) lv_obj_set_flex_flow(item, lv_xml_flex_flow_to_enum(value)); in lv_xml_obj_apply() 67 else if(lv_streq("flex_grow", name)) lv_obj_set_flex_grow(item, lv_xml_atoi(value)); in lv_xml_obj_apply() [all …]
|
D | lv_xml_tabview_parser.c | 42 void * item = lv_tabview_create(lv_xml_state_get_parent(state)); in lv_xml_tabview_create() local 44 return item; in lv_xml_tabview_create() 50 void * item = lv_xml_state_get_item(state); in lv_xml_tabview_apply() local 58 if(lv_streq("active", name)) lv_tabview_set_active(item, lv_xml_atoi(value), 0); in lv_xml_tabview_apply() 59 …if(lv_streq("tab_bar_position", name)) lv_tabview_set_tab_bar_position(item, lv_xml_dir_to_enum(va… in lv_xml_tabview_apply() 66 void * item = lv_tabview_get_tab_bar(lv_xml_state_get_parent(state)); in lv_xml_tabview_tab_bar_create() local 67 return item; in lv_xml_tabview_tab_bar_create() 80 void * item = lv_tabview_add_tab(lv_xml_state_get_parent(state), text); in lv_xml_tabview_tab_create() local 81 return item; in lv_xml_tabview_tab_create()
|
D | lv_xml_image_parser.c | 43 void * item = lv_image_create(lv_xml_state_get_parent(state)); in lv_xml_image_create() local 45 if(item == NULL) { in lv_xml_image_create() 50 return item; in lv_xml_image_create() 55 void * item = lv_xml_state_get_item(state); in lv_xml_image_apply() local 63 if(lv_streq("src", name)) lv_image_set_src(item, lv_xml_get_image(value)); in lv_xml_image_apply() 64 … if(lv_streq("inner_align", name)) lv_image_set_inner_align(item, image_align_to_enum(value)); in lv_xml_image_apply() 65 if(lv_streq("rotation", name)) lv_image_set_rotation(item, lv_xml_atoi(value)); in lv_xml_image_apply() 66 if(lv_streq("scale_x", name)) lv_image_set_scale_x(item, lv_xml_atoi(value)); in lv_xml_image_apply() 67 if(lv_streq("scale_y", name)) lv_image_set_scale_y(item, lv_xml_atoi(value)); in lv_xml_image_apply() 71 lv_image_set_pivot(item, x, y); in lv_xml_image_apply()
|
D | lv_xml_dropdown_parser.c | 42 void * item = lv_dropdown_create(lv_xml_state_get_parent(state)); in lv_xml_dropdown_create() local 44 return item; in lv_xml_dropdown_create() 50 void * item = lv_xml_state_get_item(state); in lv_xml_dropdown_apply() local 58 if(lv_streq("options", name)) lv_dropdown_set_options(item, value); in lv_xml_dropdown_apply() 59 if(lv_streq("text", name)) lv_dropdown_set_text(item, value); in lv_xml_dropdown_apply() 60 … if(lv_streq("selected", name)) lv_dropdown_set_selected(item, lv_xml_atoi(value), LV_ANIM_OFF); in lv_xml_dropdown_apply() 61 if(lv_streq("symbol", name)) lv_dropdown_set_symbol(item, lv_xml_get_image(value)); in lv_xml_dropdown_apply()
|
D | lv_xml_label_parser.c | 43 void * item = lv_label_create(lv_xml_state_get_parent(state)); in lv_xml_label_create() local 45 return item; in lv_xml_label_create() 50 void * item = lv_xml_state_get_item(state); in lv_xml_label_apply() local 58 if(lv_streq("text", name)) lv_label_set_text(item, value); in lv_xml_label_apply() 59 … if(lv_streq("long_mode", name)) lv_label_set_long_mode(item, long_mode_text_to_enum_value(value)); in lv_xml_label_apply()
|
D | lv_xml_chart_parser.c | 45 void * item = lv_chart_create(lv_xml_state_get_parent(state)); in lv_xml_chart_create() local 47 return item; in lv_xml_chart_create() 53 void * item = lv_xml_state_get_item(state); in lv_xml_chart_apply() local 61 if(lv_streq("point_count", name)) lv_chart_set_point_count(item, lv_xml_atoi(value)); in lv_xml_chart_apply() 62 else if(lv_streq("type", name)) lv_chart_set_type(item, chart_type_to_enum(value)); in lv_xml_chart_apply() 63 …else if(lv_streq("update_mode", name)) lv_chart_set_update_mode(item, chart_update_mode_to_enum(va… in lv_xml_chart_apply() 68 lv_chart_set_div_line_count(item, value1, value2); in lv_xml_chart_apply() 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() local 79 return item; in lv_xml_chart_series_create() 107 …void * item = lv_chart_add_cursor(lv_xml_state_get_parent(state), lv_color_hex(lv_xml_strtol(color… in lv_xml_chart_cursor_create() local [all …]
|
D | lv_xml_table_parser.c | 43 void * item = lv_table_create(lv_xml_state_get_parent(state)); in lv_xml_table_create() local 45 return item; in lv_xml_table_create() 51 void * item = lv_xml_state_get_item(state); in lv_xml_table_apply() local 59 if(lv_streq("column_conunt", name)) lv_table_set_column_count(item, lv_xml_atoi(value)); in lv_xml_table_apply() 60 else if(lv_streq("row_conunt", name)) lv_table_set_row_count(item, lv_xml_atoi(value)); in lv_xml_table_apply() 65 lv_table_set_selected_cell(item, value1, value2); in lv_xml_table_apply()
|
D | lv_xml_button_parser.c | 44 void * item = lv_button_create(lv_xml_state_get_parent(state)); in lv_xml_button_create() local 46 return item; in lv_xml_button_create()
|
/lvgl-latest/src/others/fragment/ |
D | lv_fragment_manager.c | 44 static void item_create_obj(lv_fragment_managed_states_t * item); 46 static void item_delete_obj(lv_fragment_managed_states_t * item); 48 static void item_delete_fragment(lv_fragment_managed_states_t * item); 129 lv_fragment_stack_item_t * item = NULL; in lv_fragment_manager_remove() local 130 LV_LL_READ_BACK(&manager->stack, item) { in lv_fragment_manager_remove() 131 if(item->states == states) { in lv_fragment_manager_remove() 132 was_top = stack_top == item; in lv_fragment_manager_remove() 133 void * stack_prev = lv_ll_get_prev(&manager->stack, item); in lv_fragment_manager_remove() 139 if(item) { in lv_fragment_manager_remove() 140 lv_ll_remove(&manager->stack, item); in lv_fragment_manager_remove() [all …]
|
/lvgl-latest/scripts/gen_json/ |
D | pycparser_monkeypatch.py | 346 for item in (self.values or []): 347 item.process() 380 for item in (self.values or []): 381 item_dict = item.to_dict() 383 code = generator.visit(item.value) 528 for item in (self.enumerators or []): 529 item.parent = value 642 for item in self.ext[:]: 644 isinstance(item, Decl) and 645 item.name is None and [all …]
|
/lvgl-latest/demos/flex_layout/ |
D | lv_demo_flex_layout_flex_loader.c | 18 #define FLEX_ALIGN_EVENT_DEF(item) \ argument 19 static void flex_align_##item##_event_handler(lv_event_t* e) \ 25 lv_obj_set_style_flex_##item##_place(ui->obj_cur, \ 30 #define FLEX_ALIGN_DDLIST_UPDATE_DEF(item) \ argument 32 lv_flex_align_t flex_align = lv_obj_get_style_flex_##item##_place(obj, 0); \ 35 lv_dropdown_set_selected(ui->ctrl_pad.tab.align.ddlist_align_##item, \ 42 #define FLEX_ALIGN_EVENT_ATTACH(item) \ argument 44 lv_obj_add_event_cb(ui->ctrl_pad.tab.align.ddlist_align_##item, \ 45 flex_align_##item##_event_handler, \
|
D | lv_demo_flex_layout_ctrl_pad.c | 18 #define SPINBOX_UPDATE_STYLE_VALUE(item) \ argument 20 lv_obj_t* sbox = ui->ctrl_pad.tab.layout.spinbox_##item; \ 21 int32_t val = lv_obj_get_style_##item(obj, LV_PART_MAIN); \ 25 #define SPINBOX_EVENT_ATTACH(item) \ argument 26 …lv_obj_add_event_cb(ui->ctrl_pad.tab.layout.spinbox_##item, ctrl_pad_spinbox_event_handler, LV_EVE…
|
/lvgl-latest/examples/others/gridnav/ |
D | lv_example_gridnav_2.c | 23 lv_obj_t * item = lv_list_add_button(list1, LV_SYMBOL_FILE, buf); in lv_example_gridnav_2() local 24 lv_obj_set_style_bg_opa(item, 0, 0); in lv_example_gridnav_2() 25 lv_group_remove_obj(item); /*Not needed, we use the gridnav instead*/ in lv_example_gridnav_2() 37 lv_obj_t * item = lv_list_add_button(list2, LV_SYMBOL_DIRECTORY, buf); in lv_example_gridnav_2() local 38 lv_obj_set_style_bg_opa(item, 0, 0); in lv_example_gridnav_2() 39 lv_group_remove_obj(item); in lv_example_gridnav_2()
|
D | lv_example_gridnav_4.c | 36 lv_obj_t * item = lv_list_add_button(list, LV_SYMBOL_FILE, buf); in lv_example_gridnav_4() local 37 lv_obj_add_event_cb(item, event_handler, LV_EVENT_CLICKED, NULL); in lv_example_gridnav_4() 38 lv_group_remove_obj(item); /*The default group adds it automatically*/ in lv_example_gridnav_4()
|
/lvgl-latest/src/others/xml/ |
D | lv_xml.c | 118 state.item = state.view; in lv_xml_create_from_ctx() 132 lv_obj_t * item = NULL; in lv_xml_create() local 140 state.item = p->create_cb(&state, attrs); in lv_xml_create() 144 return state.item; in lv_xml_create() 149 item = lv_xml_create_from_ctx(parent, NULL, ctx, attrs); in lv_xml_create() 150 return item; in lv_xml_create() 331 void * item = NULL; in view_start_element_handler() local 335 item = p->create_cb(state, attrs); in view_start_element_handler() 336 state->item = item; in view_start_element_handler() 343 if(state->ctx.is_widget && is_view) lv_obj_remove_style_all(item); in view_start_element_handler() [all …]
|
/lvgl-latest/docs/ |
D | config_builder.py | 37 line = [item for item in line.split(' ') if item] 39 for j, item in enumerate(line): 40 if item == '0':
|
/lvgl-latest/docs/details/widgets/ |
D | roller.rst | 11 Roller allows the end user to select an item from a list by scrolling it. 12 The item in the middle is the selected item and normally stands out from 29 - When the Roller is scrolled and doesn't stop exactly on an item, it will 30 automatically scroll to the nearest valid item in ``anim_time`` 34 - :cpp:enumerator:`LV_PART_SELECTED` The selected item (displayed in the middle of 36 properties to change the appearance of the text of the selected item. 57 where *id* is the zero-based index of the list item to be selected. 59 If you don't know the index of an option can also select an item with 66 To get the *index* of the currently selected item use :cpp:expr:`lv_roller_get_selected(roller)`. 68 …roller_get_selected_str(roller, buf, buf_size)` will copy the name of the selected item to ``buf``. [all …]
|
/lvgl-latest/src/draw/sw/ |
D | lv_draw_sw_gradient.c | 110 lv_grad_t * item = lv_malloc(req_size); in allocate_item() local 111 LV_ASSERT_MALLOC(item); in allocate_item() 112 if(item == NULL) return NULL; in allocate_item() 114 uint8_t * p = (uint8_t *)item; in allocate_item() 115 item->color_map = (lv_color_t *)(p + ALIGN(sizeof(*item))); in allocate_item() 116 item->opa_map = (lv_opa_t *)(p + ALIGN(sizeof(*item)) + ALIGN(size * sizeof(lv_color_t))); in allocate_item() 117 item->size = size; in allocate_item() 118 return item; in allocate_item() 150 lv_grad_t * item = allocate_item(g, w, h); in lv_gradient_get() local 151 if(item == NULL) { in lv_gradient_get() [all …]
|