* Implement some elm_win_*_get() functions

SVN revision: 43034
This commit is contained in:
Davide Andreoli 2009-10-12 09:09:55 +00:00
parent c61b56a1a2
commit 286653bb37
2 changed files with 120 additions and 0 deletions

View File

@ -205,14 +205,23 @@ extern "C" {
EAPI void elm_win_lower(Evas_Object *obj);
EAPI void elm_win_raise(Evas_Object *obj);
EAPI void elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless);
EAPI Eina_Bool elm_win_borderless_get(Evas_Object *obj);
EAPI void elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped);
EAPI Eina_Bool elm_win_shaped_get(Evas_Object *obj);
EAPI void elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha);
EAPI Eina_Bool elm_win_alpha_get(Evas_Object *obj);
EAPI void elm_win_override_set(Evas_Object *obj, Eina_Bool override);
EAPI Eina_Bool elm_win_override_get(Evas_Object *obj);
EAPI void elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen);
EAPI Eina_Bool elm_win_fullscreen_get(Evas_Object *obj);
EAPI void elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized);
EAPI Eina_Bool elm_win_maximized_get(Evas_Object *obj);
EAPI void elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified);
EAPI Eina_Bool elm_win_iconified_get(Evas_Object *obj);
EAPI void elm_win_layer_set(Evas_Object *obj, int layer);
EAPI int elm_win_layer_get(Evas_Object *obj);
EAPI void elm_win_rotation_set(Evas_Object *obj, int rotation);
EAPI int elm_win_rotation_get(Evas_Object *obj);
EAPI void elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky);
/*...

View File

@ -507,6 +507,16 @@ elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless)
_elm_win_xwin_update(win);
}
EAPI Eina_Bool
elm_win_borderless_get(Evas_Object *obj)
{
Elm_Win *win;
if(strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
return ecore_evas_borderless_get(win->ee);
}
EAPI void
elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped)
{
@ -518,6 +528,16 @@ elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped)
_elm_win_xwin_update(win);
}
EAPI Eina_Bool
elm_win_shaped_get(Evas_Object *obj)
{
Elm_Win *win;
if(strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
return ecore_evas_shaped_get(win->ee);
}
EAPI void
elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha)
{
@ -542,6 +562,16 @@ elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha)
ecore_evas_alpha_set(win->ee, alpha);
}
EAPI Eina_Bool
elm_win_alpha_get(Evas_Object *obj)
{
Elm_Win *win;
if(strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
return ecore_evas_alpha_get(win->ee);
}
EAPI void
elm_win_override_set(Evas_Object *obj, Eina_Bool override)
{
@ -553,6 +583,16 @@ elm_win_override_set(Evas_Object *obj, Eina_Bool override)
_elm_win_xwin_update(win);
}
EAPI Eina_Bool
elm_win_override_get(Evas_Object *obj)
{
Elm_Win *win;
if(strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
return ecore_evas_override_get(win->ee);
}
EAPI void
elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen)
{
@ -573,6 +613,27 @@ elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen)
}
}
EAPI Eina_Bool
elm_win_fullscreen_get(Evas_Object *obj)
{
Elm_Win *win;
if(strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
switch (_elm_config->engine)
{
case ELM_SOFTWARE_16_WINCE:
case ELM_SOFTWARE_FB:
// these engines... can ONLY be fullscreen
return EINA_TRUE;
break;
default:
return ecore_evas_fullscreen_get(win->ee);
break;
}
return EINA_FALSE;
}
EAPI void
elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized)
{
@ -584,6 +645,16 @@ elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized)
_elm_win_xwin_update(win);
}
EAPI Eina_Bool
elm_win_maximized_get(Evas_Object *obj)
{
Elm_Win *win;
if(strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
return ecore_evas_maximized_get(win->ee);
}
EAPI void
elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified)
{
@ -595,6 +666,16 @@ elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified)
_elm_win_xwin_update(win);
}
EAPI Eina_Bool
elm_win_iconified_get(Evas_Object *obj)
{
Elm_Win *win;
if(strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
return ecore_evas_iconified_get(win->ee);
}
EAPI void
elm_win_layer_set(Evas_Object *obj, int layer)
{
@ -606,6 +687,16 @@ elm_win_layer_set(Evas_Object *obj, int layer)
_elm_win_xwin_update(win);
}
EAPI int
elm_win_layer_get(Evas_Object *obj)
{
Elm_Win *win;
if(strcmp(elm_widget_type_get(obj), "win")) return -1;
win = elm_widget_data_get(obj);
if (!win) return -1;
return ecore_evas_layer_get(win->ee);
}
EAPI void
elm_win_rotation_set(Evas_Object *obj, int rotation)
{
@ -622,6 +713,16 @@ elm_win_rotation_set(Evas_Object *obj, int rotation)
_elm_win_xwin_update(win);
}
EAPI int
elm_win_rotation_get(Evas_Object *obj)
{
Elm_Win *win;
if(strcmp(elm_widget_type_get(obj), "win")) return -1;
win = elm_widget_data_get(obj);
if (!win) return -1;
return win->rot;
}
EAPI void
elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky)
{
@ -633,6 +734,16 @@ elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky)
_elm_win_xwin_update(win);
}
EAPI Eina_Bool
elm_win_sticky_get(Evas_Object *obj)
{
Elm_Win *win;
if(strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
win = elm_widget_data_get(obj);
if (!win) return EINA_FALSE;
return ecore_evas_sticky_get(win->ee);
}
EAPI void
elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode)
{