forked from enlightenment/efl
elm elm_win.c/h: Made documentation more explicit.
SVN revision: 78963
This commit is contained in:
parent
914d525282
commit
2c10ffddc3
|
@ -3043,35 +3043,35 @@ elm_win_shaped_get(const Evas_Object *obj)
|
|||
|
||||
EAPI void
|
||||
elm_win_alpha_set(Evas_Object *obj,
|
||||
Eina_Bool alpha)
|
||||
Eina_Bool enabled)
|
||||
{
|
||||
ELM_WIN_CHECK(obj);
|
||||
ELM_WIN_DATA_GET_OR_RETURN(obj, sd);
|
||||
|
||||
if (sd->img_obj)
|
||||
{
|
||||
evas_object_image_alpha_set(sd->img_obj, alpha);
|
||||
ecore_evas_alpha_set(sd->ee, alpha);
|
||||
evas_object_image_alpha_set(sd->img_obj, enabled);
|
||||
ecore_evas_alpha_set(sd->ee, enabled);
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef HAVE_ELEMENTARY_X
|
||||
if (sd->x.xwin)
|
||||
{
|
||||
if (alpha)
|
||||
if (enabled)
|
||||
{
|
||||
if (!_elm_config->compositing)
|
||||
elm_win_shaped_set(obj, alpha);
|
||||
elm_win_shaped_set(obj, enabled);
|
||||
else
|
||||
TRAP(sd, alpha_set, alpha);
|
||||
TRAP(sd, alpha_set, enabled);
|
||||
}
|
||||
else
|
||||
TRAP(sd, alpha_set, alpha);
|
||||
TRAP(sd, alpha_set, enabled);
|
||||
_elm_win_xwin_update(sd);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
TRAP(sd, alpha_set, alpha);
|
||||
TRAP(sd, alpha_set, enabled);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -576,19 +576,20 @@ EAPI Eina_Bool elm_win_shaped_get(const Evas_Object *obj);
|
|||
* windows, with elm_win_shaped_set().
|
||||
*
|
||||
* @param obj The window object
|
||||
* @param alpha If true, the window has an alpha channel
|
||||
* @param enabled EINA_TRUE if the window alpha channel is enabled, EINA_FALSE otherwise
|
||||
*
|
||||
* @see elm_win_alpha_set()
|
||||
*
|
||||
* @ingroup Win
|
||||
*/
|
||||
EAPI void elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha);
|
||||
EAPI void elm_win_alpha_set(Evas_Object *obj, Eina_Bool enabled);
|
||||
|
||||
/**
|
||||
* Get the alpha channel state of a window.
|
||||
*
|
||||
* @param obj The window object
|
||||
* @return If true, the window has an alpha channel
|
||||
* @return EINA_TRUE if the window alpha channel is enabled, EINA_FALSE
|
||||
* otherwise
|
||||
*
|
||||
* @ingroup Win
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue