DSWindow: call the private functions at the public functions 85/242785/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 28 Aug 2020 08:39:57 +0000 (17:39 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 1 Sep 2020 01:29:48 +0000 (10:29 +0900)
Change-Id: I56c3822e98d898a6604f8390cfc741de4f16a4c7

src/DSWindow/DSWindow.cpp

index 24bc607..16b30b3 100644 (file)
@@ -137,11 +137,13 @@ bool DSWindowPrivate::setLayer(int layer)
 
 bool DSWindowPrivate::raise(void)
 {
+       raiseToTop();
        return true;
 }
 
 bool DSWindowPrivate::lower(void)
 {
+       lowerToBottom();
        return true;
 }
 
@@ -351,7 +353,6 @@ bool DSWindow::raise(void)
 {
        DS_GET_PRIV(DSWindow);
 
-       raiseToTop();
        return priv->raise();
 }
 
@@ -359,20 +360,21 @@ bool DSWindow::lower(void)
 {
        DS_GET_PRIV(DSWindow);
 
-       lowerToBottom();
        return priv->lower();
 }
 
 bool DSWindow::raiseToTop()
 {
+       DS_GET_PRIV(DSWindow);
 
-       return true;
+       return priv->raiseToTop();
 }
 
 bool DSWindow::lowerToBottom()
 {
+       DS_GET_PRIV(DSWindow);
 
-       return true;
+       return priv->lowerToBottom();
 }
 
 bool DSWindow::unsetFocus(void)
@@ -400,8 +402,7 @@ void DSWindow::setPosition(int x, int y)
 {
        DS_GET_PRIV(DSWindow);
 
-       priv->__x = x;
-       priv->__y = y;
+       priv->setPosition(x, y);
 }
 
 stPosition DSWindow::getPosition(void)