elm elm_win.c/h: Made documentation more explicit.

SVN revision: 78963
This commit is contained in:
Daniel Juyung Seo 2012-11-07 08:49:37 +00:00
parent 914d525282
commit 2c10ffddc3
2 changed files with 12 additions and 11 deletions

View File

@ -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);
}
}

View File

@ -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
*/