Home
last modified time | relevance | path

Searched refs:spec_attr (Results 1 – 17 of 17) sorted by relevance

/lvgl-3.5.0/src/core/
Dlv_event.c168 obj->spec_attr->event_dsc_cnt++; in lv_obj_add_event_cb()
169 obj->spec_attr->event_dsc = lv_mem_realloc(obj->spec_attr->event_dsc, in lv_obj_add_event_cb()
170 … obj->spec_attr->event_dsc_cnt * sizeof(lv_event_dsc_t)); in lv_obj_add_event_cb()
171 LV_ASSERT_MALLOC(obj->spec_attr->event_dsc); in lv_obj_add_event_cb()
173 obj->spec_attr->event_dsc[obj->spec_attr->event_dsc_cnt - 1].cb = event_cb; in lv_obj_add_event_cb()
174 obj->spec_attr->event_dsc[obj->spec_attr->event_dsc_cnt - 1].filter = filter; in lv_obj_add_event_cb()
175 obj->spec_attr->event_dsc[obj->spec_attr->event_dsc_cnt - 1].user_data = user_data; in lv_obj_add_event_cb()
177 return &obj->spec_attr->event_dsc[obj->spec_attr->event_dsc_cnt - 1]; in lv_obj_add_event_cb()
183 if(obj->spec_attr == NULL) return false; in lv_obj_remove_event_cb()
186 for(i = 0; i < obj->spec_attr->event_dsc_cnt; i++) { in lv_obj_remove_event_cb()
[all …]
Dlv_obj_tree.c99 if(obj->spec_attr) { in lv_obj_clean()
100 obj->spec_attr->scroll.x = 0; in lv_obj_clean()
101 obj->spec_attr->scroll.y = 0; in lv_obj_clean()
155 old_parent->spec_attr->children[i] = old_parent->spec_attr->children[i + 1]; in lv_obj_set_parent()
157 old_parent->spec_attr->child_cnt--; in lv_obj_set_parent()
158 if(old_parent->spec_attr->child_cnt) { in lv_obj_set_parent()
159 old_parent->spec_attr->children = lv_mem_realloc(old_parent->spec_attr->children, in lv_obj_set_parent()
160 … old_parent->spec_attr->child_cnt * (sizeof(lv_obj_t *))); in lv_obj_set_parent()
163 lv_mem_free(old_parent->spec_attr->children); in lv_obj_set_parent()
164 old_parent->spec_attr->children = NULL; in lv_obj_set_parent()
[all …]
Dlv_obj_class.c84 if(parent->spec_attr == NULL) { in lv_obj_class_create_obj()
88 if(parent->spec_attr->children == NULL) { in lv_obj_class_create_obj()
89 parent->spec_attr->children = lv_mem_alloc(sizeof(lv_obj_t *)); in lv_obj_class_create_obj()
90 parent->spec_attr->children[0] = obj; in lv_obj_class_create_obj()
91 parent->spec_attr->child_cnt = 1; in lv_obj_class_create_obj()
94 parent->spec_attr->child_cnt++; in lv_obj_class_create_obj()
95 parent->spec_attr->children = lv_mem_realloc(parent->spec_attr->children, in lv_obj_class_create_obj()
96 … sizeof(lv_obj_t *) * parent->spec_attr->child_cnt); in lv_obj_class_create_obj()
97 parent->spec_attr->children[parent->spec_attr->child_cnt - 1] = obj; in lv_obj_class_create_obj()
Dlv_obj_scroll.c62 if(obj->spec_attr->scrollbar_mode == mode) return; in lv_obj_set_scrollbar_mode()
63 obj->spec_attr->scrollbar_mode = mode; in lv_obj_set_scrollbar_mode()
71 if(dir != obj->spec_attr->scroll_dir) { in lv_obj_set_scroll_dir()
72 obj->spec_attr->scroll_dir = dir; in lv_obj_set_scroll_dir()
79 obj->spec_attr->scroll_snap_x = align; in lv_obj_set_scroll_snap_x()
85 obj->spec_attr->scroll_snap_y = align; in lv_obj_set_scroll_snap_y()
94 if(obj->spec_attr) return obj->spec_attr->scrollbar_mode; in lv_obj_get_scrollbar_mode()
100 if(obj->spec_attr) return obj->spec_attr->scroll_dir; in lv_obj_get_scroll_dir()
106 if(obj->spec_attr) return obj->spec_attr->scroll_snap_x; in lv_obj_get_scroll_snap_x()
112 if(obj->spec_attr) return obj->spec_attr->scroll_snap_y; in lv_obj_get_scroll_snap_y()
[all …]
Dlv_obj.c331 if(obj->spec_attr) return obj->spec_attr->group_p; in lv_obj_get_group()
343 if(obj->spec_attr == NULL) { in lv_obj_allocate_spec_attr()
346 obj->spec_attr = lv_mem_alloc(sizeof(_lv_obj_spec_attr_t)); in lv_obj_allocate_spec_attr()
347 LV_ASSERT_MALLOC(obj->spec_attr); in lv_obj_allocate_spec_attr()
348 if(obj->spec_attr == NULL) return; in lv_obj_allocate_spec_attr()
350 lv_memset_00(obj->spec_attr, sizeof(_lv_obj_spec_attr_t)); in lv_obj_allocate_spec_attr()
352 obj->spec_attr->scroll_dir = LV_DIR_ALL; in lv_obj_allocate_spec_attr()
353 obj->spec_attr->scrollbar_mode = LV_SCROLLBAR_MODE_AUTO; in lv_obj_allocate_spec_attr()
449 if(obj->spec_attr) { in lv_obj_destructor()
450 if(obj->spec_attr->children) { in lv_obj_destructor()
[all …]
Dlv_group.c83 if((*obj)->spec_attr)(*obj)->spec_attr->group_p = NULL; in lv_group_del()
132 if(obj->spec_attr->group_p && *(obj->spec_attr->group_p->obj_focus) == obj) { in lv_group_add_obj()
139 if(obj->spec_attr == NULL) lv_obj_allocate_spec_attr(obj); in lv_group_add_obj()
140 obj->spec_attr->group_p = group; in lv_group_add_obj()
209 if(obj->spec_attr) obj->spec_attr->group_p = NULL; in lv_group_remove_obj()
228 if((*obj)->spec_attr)(*obj)->spec_attr->group_p = NULL; in lv_group_remove_all_objs()
Dlv_obj_draw.c378 if(obj->spec_attr) { in lv_obj_refresh_ext_draw_size()
379 obj->spec_attr->ext_draw_size = s_new; in lv_obj_refresh_ext_draw_size()
385 obj->spec_attr->ext_draw_size = s_new; in lv_obj_refresh_ext_draw_size()
393 if(obj->spec_attr) return obj->spec_attr->ext_draw_size; in _lv_obj_get_ext_draw_size()
400 if(obj->spec_attr) return obj->spec_attr->layer_type; in _lv_obj_get_layer_type()
Dlv_obj_pos.c787 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_move_children_by()
939 obj->spec_attr->ext_click_pad = size; in lv_obj_set_ext_click_area()
945 if(obj->spec_attr) { in lv_obj_get_click_area()
946 area->x1 -= obj->spec_attr->ext_click_pad; in lv_obj_get_click_area()
947 area->x2 += obj->spec_attr->ext_click_pad; in lv_obj_get_click_area()
948 area->y1 -= obj->spec_attr->ext_click_pad; in lv_obj_get_click_area()
949 area->y2 += obj->spec_attr->ext_click_pad; in lv_obj_get_click_area()
1011 lv_obj_t * child = obj->spec_attr->children[i]; in calc_content_width()
1043 lv_obj_t * child = obj->spec_attr->children[i]; in calc_content_width()
1093 lv_obj_t * child = obj->spec_attr->children[i]; in calc_content_height()
[all …]
Dlv_obj.h177 _lv_obj_spec_attr_t * spec_attr; member
Dlv_obj_style.c199 if(obj->spec_attr) obj->spec_attr->layer_type = layer_type; in lv_obj_refresh_style()
202 obj->spec_attr->layer_type = layer_type; in lv_obj_refresh_style()
656 report_style_change_core(style, obj->spec_attr->children[i]); in report_style_change_core()
670 lv_obj_t * child = obj->spec_attr->children[i]; in refresh_children_style()
Dlv_refr.c180 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_redraw()
739 lv_obj_t * child = obj->spec_attr->children[i]; in lv_refr_get_top_obj()
784 lv_obj_t * child = parent->spec_attr->children[i]; in refr_obj_and_children()
Dlv_indev_scroll.c468 lv_obj_t * child = obj->spec_attr->children[i]; in find_snap_point_x()
523 lv_obj_t * child = obj->spec_attr->children[i]; in find_snap_point_y()
Dlv_indev.c319 lv_obj_t * child = obj->spec_attr->children[i]; in lv_indev_search_obj()
/lvgl-3.5.0/src/extra/layouts/flex/
Dlv_flex.c259 track_first_item = f.rev ? cont->spec_attr->child_cnt - 1 : 0; in flex_update()
261 while(track_first_item < (int32_t)cont->spec_attr->child_cnt && track_first_item >= 0) { in flex_update()
277 track_first_item = f.rev ? cont->spec_attr->child_cnt - 1 : 0; in flex_update()
283 while(track_first_item < (int32_t)cont->spec_attr->child_cnt && track_first_item >= 0) { in flex_update()
390 item = cont->spec_attr->children[item_id]; in find_track_end()
592 if(*item_id >= 0) return cont->spec_attr->children[*item_id]; in get_next_item()
597 … if((*item_id) < (int32_t)cont->spec_attr->child_cnt) return cont->spec_attr->children[*item_id]; in get_next_item()
/lvgl-3.5.0/src/widgets/
Dlv_slider.c113 lv_coord_t ext_click_area = obj->spec_attr ? obj->spec_attr->ext_click_pad : 0; in lv_slider_event()
Dlv_arc.c574 if(obj->spec_attr) ext_click_area = obj->spec_attr->ext_click_pad; in lv_arc_event()
/lvgl-3.5.0/src/extra/layouts/grid/
Dlv_grid.c368 for(i = 0; i < cont->spec_attr->child_cnt; i++) { in grid_update()
369 lv_obj_t * item = cont->spec_attr->children[i]; in grid_update()