static Eina_Bool
_e_comp_object_effect_visibility_start(E_Comp_Object *cw, Eina_Bool state)
{
- E_Zone *zone;
- int x, y;
- int zw = 0, zh = 0;
-
- if ((!cw->visibility_effect) || (!e_comp_object_effect_allowed_get(cw->smart_obj))) return EINA_TRUE;;
- if (!cw->effect_running)
- _e_comp_object_animating_begin(cw);
- if (!e_comp_object_effect_stop(cw->smart_obj, _e_comp_object_done_defer))
- return _e_comp_object_animating_end(cw);
- if (!e_comp_object_effect_set(cw->smart_obj, cw->visibility_effect))
- return _e_comp_object_animating_end(cw);
-
- evas_pointer_canvas_xy_get(e_comp_evas_get(), &x, &y);
- x -= cw->x;
- y -= cw->y;
- zone = e_comp_zone_find_by_ec(cw->ec);
- if (zone)
- zw = zone->w, zh = zone->h;
- else
- {
- E_Zone *zone;
-
- zone = e_comp_object_util_zone_get(cw->smart_obj);
- if (!zone) zone = e_zone_current_get();
- if (zone)
- {
- zw = zone->w;
- zh = zone->h;
- }
- }
- e_comp_object_effect_params_set(cw->smart_obj, 1, (int[]){cw->x, cw->y,
- cw->w, cw->h, zw, zh, x, y}, 8);
- e_comp_object_effect_params_set(cw->smart_obj, 0, (int[]){state}, 1);
- e_comp_object_effect_start(cw->smart_obj, _e_comp_object_done_defer, cw);
return EINA_TRUE;
}
/////////////////////////////////////////////
E_CONFIG_VAL(D, T, modal, CHAR);
E_CONFIG_VAL(D, T, focus, CHAR);
E_CONFIG_VAL(D, T, no_shadow, CHAR);
- E_CONFIG_VAL(D, T, visibility_effect, STR);
*conf_edd = E_CONFIG_DD_NEW("Comp_Config", E_Comp_Config);
#undef T
eina_stringshare_del(m->name);
eina_stringshare_del(m->clas);
eina_stringshare_del(m->role);
- eina_stringshare_del(m->visibility_effect);
free(m);
}
const char *role; // glob - used for borders
E_DEPRECATED const char *shadow_style; // shadow style to use
- const char *visibility_effect; // effect to use when showing and hiding
+ E_DEPRECATED const char *visibility_effect; // effect to use when showing and hiding
int primary_type; // Ecore_X_Window_Type - used for borders, overrides, first one found - ECORE_X_WINDOW_TYPE_UNKNOWN if not to be used
char borderless; // used for borders, 0 == dont use, 1 == borderless, -1 == not borderless