DSWindowPrivate: add setPosition method 84/242784/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 28 Aug 2020 08:38:42 +0000 (17:38 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 1 Sep 2020 01:29:48 +0000 (10:29 +0900)
Change-Id: I0957e30e7548746a1ad1fff4242ed6738ee16bcc

src/DSWindow/DSWindow.cpp
src/DSWindow/DSWindowPrivate.h

index 85299f6..24bc607 100644 (file)
@@ -186,6 +186,19 @@ bool DSWindowPrivate::isCreated()
        return __created;
 }
 
+void DSWindowPrivate::setPosition(int x, int y)
+{
+       __x = x;
+       __y = y;
+
+       if (__renderView)
+               __renderView->setPosition(x, y);
+
+       // TODO: set lowerToBottom to hwc window ???
+       // if (__displayDeviceHWCWindow)
+       //      __displayDeviceHWCWindow->lowerToBottom();
+}
+
 bool DSWindowPrivate::setVkbdFloating(bool set)
 {
        __vkbd_floating = set;
index 01382a3..b7e35d5 100644 (file)
@@ -73,6 +73,8 @@ public:
        bool setFocus(void);
        bool isCreated();
 
+       void setPosition(int x, int y);
+
        bool setVkbdFloating(bool set);
        bool getVkbdFloating();