add elm_win_screen_size_get using ecore_evas
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 21 Nov 2011 19:51:24 +0000 (19:51 +0000)
committerMike McCormack <mj.mccormack@samsung.com>
Wed, 23 Nov 2011 01:13:31 +0000 (10:13 +0900)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@65494 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/Elementary.h.in
src/lib/elm_win.c

index 6ae6ad1..7d2f087 100644 (file)
@@ -4369,6 +4369,15 @@ extern "C" {
     */
    EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
    /**
+    * 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
     *
     * This function will enable or disable the focus highlight only for the
index 0171432..fae74b7 100644 (file)
@@ -2152,6 +2152,16 @@ elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y)
 }
 
 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)
 {
    Elm_Win *win;