git-svn-id: https://svn.enlightenment.org/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) 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.
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_screen_size_get(const Evas_Object *obj, int *x, int *y, int *w, int *h)
{