Home
last modified time | relevance | path

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

/lvgl-latest/src/core/
Dlv_event.c163 obj->spec_attr->event_dsc_cnt++; in lv_obj_add_event_cb()
164 obj->spec_attr->event_dsc = lv_mem_realloc(obj->spec_attr->event_dsc, in lv_obj_add_event_cb()
165 … obj->spec_attr->event_dsc_cnt * sizeof(lv_event_dsc_t)); in lv_obj_add_event_cb()
166 LV_ASSERT_MALLOC(obj->spec_attr->event_dsc); in lv_obj_add_event_cb()
168 obj->spec_attr->event_dsc[obj->spec_attr->event_dsc_cnt - 1].cb = event_cb; in lv_obj_add_event_cb()
169 obj->spec_attr->event_dsc[obj->spec_attr->event_dsc_cnt - 1].filter = filter; in lv_obj_add_event_cb()
170 obj->spec_attr->event_dsc[obj->spec_attr->event_dsc_cnt - 1].user_data = user_data; in lv_obj_add_event_cb()
172 return &obj->spec_attr->event_dsc[obj->spec_attr->event_dsc_cnt - 1]; in lv_obj_add_event_cb()
178 if(obj->spec_attr == NULL) return false; in lv_obj_remove_event_cb()
181 for(i = 0; i < obj->spec_attr->event_dsc_cnt; i++) { in lv_obj_remove_event_cb()
[all …]
Dlv_obj_tree.c94 if(obj->spec_attr) { in lv_obj_clean()
95 obj->spec_attr->scroll.x = 0; in lv_obj_clean()
96 obj->spec_attr->scroll.y = 0; in lv_obj_clean()
150 old_parent->spec_attr->children[i] = old_parent->spec_attr->children[i + 1]; in lv_obj_set_parent()
152 old_parent->spec_attr->child_cnt--; in lv_obj_set_parent()
153 if(old_parent->spec_attr->child_cnt) { in lv_obj_set_parent()
154 old_parent->spec_attr->children = lv_mem_realloc(old_parent->spec_attr->children, in lv_obj_set_parent()
155 … old_parent->spec_attr->child_cnt * (sizeof(lv_obj_t *))); in lv_obj_set_parent()
158 lv_mem_free(old_parent->spec_attr->children); in lv_obj_set_parent()
159 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.c350 if(obj->spec_attr) return obj->spec_attr->group_p; in lv_obj_get_group()
362 if(obj->spec_attr == NULL) { in lv_obj_allocate_spec_attr()
365 obj->spec_attr = lv_mem_alloc(sizeof(_lv_obj_spec_attr_t)); in lv_obj_allocate_spec_attr()
366 LV_ASSERT_MALLOC(obj->spec_attr); in lv_obj_allocate_spec_attr()
367 if(obj->spec_attr == NULL) return; in lv_obj_allocate_spec_attr()
369 lv_memset_00(obj->spec_attr, sizeof(_lv_obj_spec_attr_t)); in lv_obj_allocate_spec_attr()
371 obj->spec_attr->scroll_dir = LV_DIR_ALL; in lv_obj_allocate_spec_attr()
372 obj->spec_attr->scrollbar_mode = LV_SCROLLBAR_MODE_AUTO; in lv_obj_allocate_spec_attr()
468 if(obj->spec_attr) { in lv_obj_destructor()
469 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()
210 if(obj->spec_attr) obj->spec_attr->group_p = NULL; in lv_group_remove_obj()
229 if((*obj)->spec_attr)(*obj)->spec_attr->group_p = NULL; in lv_group_remove_all_objs()
Dlv_obj_draw.c370 if(obj->spec_attr) { in lv_obj_refresh_ext_draw_size()
371 obj->spec_attr->ext_draw_size = s_new; in lv_obj_refresh_ext_draw_size()
377 obj->spec_attr->ext_draw_size = s_new; in lv_obj_refresh_ext_draw_size()
385 if(obj->spec_attr) return obj->spec_attr->ext_draw_size; in _lv_obj_get_ext_draw_size()
392 if(obj->spec_attr) return obj->spec_attr->layer_type; in _lv_obj_get_layer_type()
Dlv_obj_pos.c785 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_move_children_by()
935 obj->spec_attr->ext_click_pad = size; in lv_obj_set_ext_click_area()
941 if(obj->spec_attr) { in lv_obj_get_click_area()
942 area->x1 -= obj->spec_attr->ext_click_pad; in lv_obj_get_click_area()
943 area->x2 += obj->spec_attr->ext_click_pad; in lv_obj_get_click_area()
944 area->y1 -= obj->spec_attr->ext_click_pad; in lv_obj_get_click_area()
945 area->y2 += obj->spec_attr->ext_click_pad; in lv_obj_get_click_area()
1005 lv_obj_t * child = obj->spec_attr->children[i]; in calc_content_width()
1037 lv_obj_t * child = obj->spec_attr->children[i]; in calc_content_width()
1087 lv_obj_t * child = obj->spec_attr->children[i]; in calc_content_height()
[all …]
Dlv_obj.h176 _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()
685 report_style_change_core(style, obj->spec_attr->children[i]); in report_style_change_core()
699 lv_obj_t * child = obj->spec_attr->children[i]; in refresh_children_style()
Dlv_refr.c181 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_redraw()
823 lv_obj_t * child = obj->spec_attr->children[i]; in lv_refr_get_top_obj()
868 lv_obj_t * child = parent->spec_attr->children[i]; in refr_obj_and_children()
Dlv_indev_scroll.c465 lv_obj_t * child = obj->spec_attr->children[i]; in find_snap_point_x()
520 lv_obj_t * child = obj->spec_attr->children[i]; in find_snap_point_y()
Dlv_indev.c318 lv_obj_t * child = obj->spec_attr->children[i]; in lv_indev_search_obj()
/lvgl-latest/src/extra/layouts/flex/
Dlv_flex.c256 track_first_item = f.rev ? cont->spec_attr->child_cnt - 1 : 0; in flex_update()
258 while(track_first_item < (int32_t)cont->spec_attr->child_cnt && track_first_item >= 0) { in flex_update()
274 track_first_item = f.rev ? cont->spec_attr->child_cnt - 1 : 0; in flex_update()
280 while(track_first_item < (int32_t)cont->spec_attr->child_cnt && track_first_item >= 0) { in flex_update()
386 item = cont->spec_attr->children[item_id]; in find_track_end()
586 if(*item_id >= 0) return cont->spec_attr->children[*item_id]; in get_next_item()
591 … if((*item_id) < (int32_t)cont->spec_attr->child_cnt) return cont->spec_attr->children[*item_id]; in get_next_item()
/lvgl-latest/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.c603 if(obj->spec_attr) ext_click_area = obj->spec_attr->ext_click_pad; in lv_arc_event()
/lvgl-latest/src/extra/layouts/grid/
Dlv_grid.c361 for(i = 0; i < cont->spec_attr->child_cnt; i++) { in grid_update()
362 lv_obj_t * item = cont->spec_attr->children[i]; in grid_update()