add elm_win_focus_get

SVN revision: 65493
This commit is contained in:
Mike Blumenkrantz 2011-11-21 19:41:53 +00:00
parent 1d851d7ea9
commit 8536e81cea
2 changed files with 16 additions and 0 deletions

View File

@ -4451,6 +4451,12 @@ extern "C" {
* @return The inlined image object, or NULL if none exists
*/
EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
/**
* Determine whether a window has focus
* @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);
/**
* Set the enabled status for the focus highlight in a window
*

View File

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