Searched refs:event_dsc (Results 1 – 5 of 5) sorted by relevance
169 obj->spec_attr->event_dsc = lv_mem_realloc(obj->spec_attr->event_dsc, 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()187 if(event_cb == NULL || obj->spec_attr->event_dsc[i].cb == event_cb) { in lv_obj_remove_event_cb()190 obj->spec_attr->event_dsc[i] = obj->spec_attr->event_dsc[i + 1]; in lv_obj_remove_event_cb()193 obj->spec_attr->event_dsc = lv_mem_realloc(obj->spec_attr->event_dsc, in lv_obj_remove_event_cb()195 LV_ASSERT_MALLOC(obj->spec_attr->event_dsc); in lv_obj_remove_event_cb()[all …]
265 bool lv_obj_remove_event_dsc(struct _lv_obj_t * obj, struct _lv_event_dsc_t * event_dsc);
160 …struct _lv_event_dsc_t * event_dsc; /**< Dynamically allocated event callback and user data array*/ member
454 if(obj->spec_attr->event_dsc) { in lv_obj_destructor()455 lv_mem_free(obj->spec_attr->event_dsc); in lv_obj_destructor()456 obj->spec_attr->event_dsc = NULL; in lv_obj_destructor()
49 …ent_cb(obj, event_cb)` function or `lv_obj_remove_event_dsc(obj, event_dsc)`. `event_dsc` is a poi…