DSPolicyArea: add functions to get the geometry of the DSPolicyArea. 23/241623/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 14 Jul 2020 04:50:14 +0000 (13:50 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 20 Aug 2020 09:53:53 +0000 (18:53 +0900)
Change-Id: Ie086535fb40e63fc90d6abd5814315784b834e94

src/DSPolicyArea/DSPolicyArea.cpp
src/DSPolicyArea/DSPolicyAreaPrivate.h

index 1fdedbb..3f63e14 100644 (file)
@@ -70,6 +70,26 @@ bool DSPolicyAreaPrivate::setSize(int width, int height)
        return true;
 }
 
+int DSPolicyAreaPrivate::getX()
+{
+       return __x;
+}
+
+int DSPolicyAreaPrivate::getY()
+{
+       return __y;
+}
+
+int DSPolicyAreaPrivate::getWidth()
+{
+       return __width;
+}
+
+int DSPolicyAreaPrivate::getHeight()
+{
+       return __height;
+}
+
 bool DSPolicyAreaPrivate::attachSeat(std::shared_ptr<DSSeat> seat)
 {
        __seat = seat;
index 6454d7f..903b3c0 100644 (file)
@@ -17,6 +17,10 @@ public:
        static DSPolicyAreaPrivate *getPrivate(DSPolicyArea *q) { return q->__d_func(); }
        bool setPosition(int x, int y);
        bool setSize(int width, int height);
+       int getX();
+       int getY();
+       int getWidth();
+       int getHeight();
        bool attachSeat(std::shared_ptr<DSSeat> seat);
 
 private: