From: JunSeok, Kim Date: Mon, 27 Aug 2018 05:18:09 +0000 (+0900) Subject: e_test_win: added window move and resize methods X-Git-Tag: submit/tizen/20181030.101450~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33e23d13e4d476bd4f75afa0fdf2d03f2454ab2c;p=platform%2Fcore%2Fuifw%2Fe-tizen-testcase.git e_test_win: added window move and resize methods Change-Id: I28f72e58ad83b129645ba48c11e7668bdf13c655 --- diff --git a/src/e_test_win.cpp b/src/e_test_win.cpp index f847cac..91f271a 100644 --- a/src/e_test_win.cpp +++ b/src/e_test_win.cpp @@ -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); +} diff --git a/src/e_test_win.h b/src/e_test_win.h index a2b7566..87b6633 100644 --- a/src/e_test_win.h +++ b/src/e_test_win.h @@ -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; }