e_test_win: added window move and resize methods 61/187661/3
authorJunSeok, Kim <juns.kim@samsung.com>
Mon, 27 Aug 2018 05:18:09 +0000 (14:18 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 29 Aug 2018 03:17:25 +0000 (03:17 +0000)
Change-Id: I28f72e58ad83b129645ba48c11e7668bdf13c655

src/e_test_win.cpp
src/e_test_win.h

index f847cacca875efca72afddc272e9a24bfc0ddcf4..91f271a1254f3b489d1f1c29e2991b917e505197 100644 (file)
@@ -99,3 +99,19 @@ void etWin::deInit()
         name = NULL;
      }
 }
+
+void etWin::move(int x, int y)
+{
+   this->x = x;
+   this->y = y;
+   elm_win_aux_hint_add(elm_win, "wm.policy.win.user.geometry", "1");
+   evas_object_move(elm_win, x, y);
+}
+
+void etWin::resize(int w, int h)
+{
+   this->w = w;
+   this->h = h;
+   elm_win_aux_hint_add(elm_win, "wm.policy.win.user.geometry", "1");
+   evas_object_resize(elm_win, w, h);
+}
index a2b756603ddf6c4cfe41d9017d67a688e757fb88..87b6633c1d7d343d24b4f7ae22d73bef3bba3c59 100644 (file)
@@ -62,6 +62,8 @@ public:
         EINA_SAFETY_ON_NULL_RETURN(elm_win);
         evas_object_hide(elm_win);
      }
+   void move(int x, int y);
+   void resize(int w, int h);
 
    /* getter&setter */
    Evas_Object *getElmWin() { return elm_win; }