Lines Matching refs:instance

66     lv_fragment_manager_t * instance = lv_mem_alloc(sizeof(lv_fragment_manager_t));  in lv_fragment_manager_create()  local
67 lv_memset_00(instance, sizeof(lv_fragment_manager_t)); in lv_fragment_manager_create()
68 instance->parent = parent; in lv_fragment_manager_create()
69 _lv_ll_init(&instance->attached, sizeof(lv_fragment_managed_states_t)); in lv_fragment_manager_create()
70 _lv_ll_init(&instance->stack, sizeof(lv_fragment_stack_item_t)); in lv_fragment_manager_create()
71 return instance; in lv_fragment_manager_create()
192 lv_fragment_t * instance = p->instance; in lv_fragment_manager_send_event() local
193 if(!instance) continue; in lv_fragment_manager_send_event()
194 if(lv_fragment_manager_send_event(instance->child_manager, code, userdata)) return true; in lv_fragment_manager_send_event()
195 if(p->cls->event_cb && p->cls->event_cb(instance, code, userdata)) return true; in lv_fragment_manager_send_event()
211 return top->states->instance; in lv_fragment_manager_get_top()
219 if(*states->container == container) return states->instance; in lv_fragment_manager_find_by_container()
236 LV_ASSERT(item->instance); in item_create_obj()
237 lv_fragment_create_obj(item->instance, item->container ? *item->container : NULL); in item_create_obj()
242 lv_fragment_del_obj(item->instance); in item_del_obj()
251 lv_fragment_t * instance = item->instance; in item_del_fragment() local
252 if(instance->cls->detached_cb) { in item_del_fragment()
253 instance->cls->detached_cb(instance); in item_del_fragment()
255 instance->managed = NULL; in item_del_fragment()
256 lv_fragment_del(instance); in item_del_fragment()
257 item->instance = NULL; in item_del_fragment()
271 states->instance = fragment; in fragment_attach()