How to create Transparency Window
How to create Transparency Window
/*
If you create and launch transparency Window
overlapped below window can't receive app_pause()
*/
static Evas_Object *
_elm_win_util_transparency_add(const char *name, const char *title)
{
Evas_Object *win, *bg;
win = elm_win_add(NULL, name, ELM_WIN_BASIC);
if (!win) return NULL;
/* Please Make sure you should set alpha to window immediately after you create New elm window */
elm_win_alpha_set(win, EINA_TRUE);
elm_win_title_set(win, title);
bg = elm_bg_add(win);
if (!bg)
{
evas_object_del(win);
return NULL;
}
/* elm_bg_color_set() doesn't support alpha value :( */
/* You should set alpha color to bg directly by evas API */
evas_object_color_set(bg, 0x80, 0x00, 0x00, 0x80);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
return win;
}