Lines Matching refs:cls
24 lv_fragment_t * lv_fragment_create(const lv_fragment_class_t * cls, void * args) in lv_fragment_create() argument
26 LV_ASSERT_NULL(cls); in lv_fragment_create()
27 LV_ASSERT_NULL(cls->create_obj_cb); in lv_fragment_create()
28 LV_ASSERT(cls->instance_size > 0); in lv_fragment_create()
29 lv_fragment_t * instance = lv_mem_alloc(cls->instance_size); in lv_fragment_create()
30 lv_memset_00(instance, cls->instance_size); in lv_fragment_create()
31 instance->cls = cls; in lv_fragment_create()
33 if(cls->constructor_cb) { in lv_fragment_create()
34 cls->constructor_cb(instance, args); in lv_fragment_create()
50 const lv_fragment_class_t * cls = fragment->cls; in lv_fragment_del() local
51 if(cls->destructor_cb) { in lv_fragment_del()
52 cls->destructor_cb(fragment); in lv_fragment_del()
85 const lv_fragment_class_t * cls = fragment->cls; in lv_fragment_create_obj() local
86 lv_obj_t * obj = cls->create_obj_cb(fragment, container); in lv_fragment_create_obj()
94 if(cls->obj_created_cb) { in lv_fragment_create_obj()
95 cls->obj_created_cb(fragment, obj); in lv_fragment_create_obj()
112 const lv_fragment_class_t * cls = fragment->cls; in lv_fragment_del_obj() local
113 if(cls->obj_will_delete_cb) { in lv_fragment_del_obj()
114 cls->obj_will_delete_cb(fragment, fragment->obj); in lv_fragment_del_obj()
117 if(cls->obj_deleted_cb) { in lv_fragment_del_obj()
118 cls->obj_deleted_cb(fragment, fragment->obj); in lv_fragment_del_obj()