EOLIAN static void _edje_object_eo_base_constructor(Eo *obj, Edje *ed) { ed->base = eo_data_ref(obj, EVAS_SMART_CLIPPED_CLASS); eo_do_super(obj, MY_CLASS, eo_constructor()); eo_do(obj, evas_obj_type_set(MY_CLASS_NAME_LEGACY)); _edje_lib_ref(); }
EAPI Evas_GL * evas_gl_new(Evas *e) { Evas_GL *evas_gl; MAGIC_CHECK(e, Evas, MAGIC_EVAS); return NULL; MAGIC_CHECK_END(); evas_gl = calloc(1, sizeof(Evas_GL)); if (!evas_gl) return NULL; evas_gl->magic = MAGIC_EVAS_GL; evas_gl->evas = eo_data_ref(e, EVAS_CLASS); if (!evas_gl->evas->engine.func->gl_context_create) { ERR("Evas GL engine not available."); free(evas_gl); return NULL; } return evas_gl; }
/************************** API Routines **************************/ EAPI Evas_Object * edje_object_add(Evas *evas) { Evas_Object *e; e = eo_add(MY_CLASS, evas); eo_unref(e); return e; } static void _edje_smart_constructor(Eo *obj, void *class_data, va_list *list EINA_UNUSED) { Edje *ed = class_data; ed->base = eo_data_ref(obj, EVAS_OBJ_SMART_CLIPPED_CLASS); eo_do_super(obj, MY_CLASS, eo_constructor()); eo_do(obj, evas_obj_type_set(MY_CLASS_NAME)); _edje_lib_ref(); } static void _edje_smart_destructor(Eo *obj, void *class_data, va_list *list EINA_UNUSED) { eo_do_super(obj, MY_CLASS, eo_destructor()); eo_data_unref(obj, class_data); } static void _dbg_info_get(Eo *eo_obj, void *_pd EINA_UNUSED, va_list *list)