add elm_win_screen_size_get using ecore_evas

SVN revision: 65494
This commit is contained in:
Mike Blumenkrantz 2011-11-21 19:51:24 +00:00
parent 8536e81cea
commit cc210afd2a
2 changed files with 20 additions and 1 deletions

View File

@ -4456,7 +4456,16 @@ extern "C" {
* @param obj The window to query
* @return EINA_TRUE if the window exists and has focus, else EINA_FALSE
*/
EAPI Eina_Bool elm_win_focus_get(const Evas_Object *obj);
EAPI Eina_Bool elm_win_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
/**
* Get screen geometry details for the screen that a window is on
* @param obj The window to query
* @param x where to return the horizontal offset value. May be NULL.
* @param y where to return the vertical offset value. May be NULL.
* @param w where to return the width value. May be NULL.
* @param h where to return the height value. May be NULL.
*/
EAPI void elm_win_screen_size_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
/**
* Set the enabled status for the focus highlight in a window
*

View File

@ -2185,6 +2185,16 @@ elm_win_focus_get(const Evas_Object *obj)
return ecore_evas_focus_get(win->ee);
}
EAPI void
elm_win_screen_size_get(const Evas_Object *obj, int *x, int *y, int *w, int *h)
{
Elm_Win *win;
ELM_CHECK_WIDTYPE(obj, widtype);
win = elm_widget_data_get(obj);
if (!win) return;
ecore_evas_screen_geometry_get(win->ee, x, y, w, h);
}
EAPI void
elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant)
{