-mixin Evas.Filter (Efl.Gfx.Filter)
+mixin Evas.Filter (Efl.Gfx.Filter, Eo.Base)
{
// Evas internal implementation
legacy_prefix: null;
val: bool;
}
}
- ctor @protected {
- [[Initialize the Evas.Filter mixin.
-
- Should be called in a parent's class constructor.
- ]]
- }
- dtor @protected {
- [[Release all data held by this Evas.Filter.
-
- This may include image buffers allocated by the Evas engine.
- This should be called at the beginning of a parent's class destructor.
- ]]
- }
input_alpha @protected {
[[Called by Evas.Filter to determine whether the input is alpha or rgba.]]
return: bool;
}
}
implements {
+ Eo.Base.constructor;
+ Eo.Base.destructor;
Efl.Gfx.Filter.program.set;
Efl.Gfx.Filter.program.get;
Efl.Gfx.Filter.state.set;
}
}
-EOLIAN static void
-_evas_filter_ctor(Eo *eo_obj EINA_UNUSED, Evas_Filter_Data *pd)
+EOLIAN static Eo_Base *
+_evas_filter_eo_base_constructor(Eo *eo_obj, Evas_Filter_Data *pd)
{
+ Eo *obj = NULL;
+
+ eo_do_super(eo_obj, MY_CLASS, obj = eo_constructor());
pd->data = eina_cow_alloc(evas_object_filter_cow);
SLKI(pd->lck);
+
+ return obj;
}
EOLIAN static void
-_evas_filter_dtor(Eo *eo_obj, Evas_Filter_Data *pd)
+_evas_filter_eo_base_destructor(Eo *eo_obj, Evas_Filter_Data *pd)
{
Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
Evas_Filter_Data_Binding *db;
Eina_Inlist *il;
- if (!pd->data) return;
- if (evas_object_filter_cow_default == pd->data) return;
+ if (!pd->data || (evas_object_filter_cow_default == pd->data))
+ goto finish;
if (pd->data->output)
{
}
evas_filter_program_del(pd->data->chain);
eina_stringshare_del(pd->data->code);
+
+finish:
eina_cow_free(evas_object_filter_cow, (const Eina_Cow_Data **) &pd->data);
if (pd->has_cb)
{
_render_post_cb, eo_obj));
}
SLKD(pd->lck);
+
+ eo_do_super(eo_obj, MY_CLASS, eo_destructor());
}
EOLIAN static void
EINA_COW_IMAGE_STATE_WRITE_END(o, state_write);
}
- eo_do(eo_obj, evas_filter_ctor());
-
return eo_obj;
}
}
EINA_COW_PIXEL_WRITE_END(o, pixi_write);
}
-
- eo_do(eo_obj, evas_filter_dtor());
}
static void
o->bidi_par_props = evas_bidi_paragraph_props_new();
o->inherit_paragraph_direction = EINA_TRUE;
#endif
-
- eo_do(eo_obj, evas_filter_ctor());
}
EOLIAN static void
Evas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
/* free obj */
- eo_do(eo_obj, evas_filter_dtor());
_evas_object_text_items_clear(o);
if (o->cur.utf8_text) eina_stringshare_del(o->cur.utf8_text);
if (o->cur.font) eina_stringshare_del(o->cur.font);