add utility function for determining if a comp object should animate
This commit is contained in:
parent
6ce353fced
commit
73fecddd7e
|
@ -3568,6 +3568,16 @@ e_comp_object_util_mirror_add(Evas_Object *obj)
|
|||
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
EAPI Eina_Bool
|
||||
e_comp_object_effect_allowed_get(Evas_Object *obj)
|
||||
{
|
||||
API_ENTRY EINA_FALSE;
|
||||
|
||||
if (!cw->shobj) return EINA_FALSE;
|
||||
if (cw->ec->override) return !e_comp_config_get()->match.disable_overrides;
|
||||
return !e_comp_config_get()->match.disable_borders;
|
||||
}
|
||||
|
||||
/* setup an api effect for a client */
|
||||
E_API Eina_Bool
|
||||
e_comp_object_effect_set(Evas_Object *obj, const char *effect)
|
||||
|
|
|
@ -73,6 +73,7 @@ E_API void e_comp_object_redirected_set(Evas_Object *obj, Eina_Bool set);
|
|||
E_API void e_comp_object_native_surface_set(Evas_Object *obj, Eina_Bool set);
|
||||
E_API void e_comp_object_dirty(Evas_Object *obj);
|
||||
E_API Eina_Bool e_comp_object_render(Evas_Object *obj);
|
||||
EAPI Eina_Bool e_comp_object_effect_allowed_get(Evas_Object *obj);
|
||||
E_API Eina_Bool e_comp_object_effect_set(Evas_Object *obj, const char *effect);
|
||||
E_API void e_comp_object_effect_params_set(Evas_Object *obj, int id, int *params, unsigned int count);
|
||||
E_API void e_comp_object_effect_clip(Evas_Object *obj);
|
||||
|
|
Loading…
Reference in New Issue