git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@65493
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
*/
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
*
* This function will enable or disable the focus highlight only for the
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)
{