From e4bacf2c3a3791a84aaa2e94aae6ae947a50bf2d Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Mon, 24 Aug 2020 14:32:26 +0900 Subject: [PATCH] DSWindow: add setZOrder/getZOrder API Change-Id: I4345dbc9de85e18545138cfd7b619f191bb8cf67 Signed-off-by: Sung-Jin Park --- src/DSWindow/DSWindow.cpp | 14 ++++++++++++++ src/DSWindow/DSWindow.h | 3 +++ src/DSWindow/DSWindowPrivate.h | 1 + 3 files changed, 18 insertions(+) diff --git a/src/DSWindow/DSWindow.cpp b/src/DSWindow/DSWindow.cpp index 1657a07..8673000 100644 --- a/src/DSWindow/DSWindow.cpp +++ b/src/DSWindow/DSWindow.cpp @@ -37,6 +37,7 @@ DSWindowPrivate::DSWindowPrivate(DSWindow *p_ptr) __y(0), __w(0), __h(0), + __zOrder(0), __committedW(0), __committedH(0), __created(false), @@ -418,6 +419,19 @@ void DSWindow::setSize(stSize size) priv->__changedGeometry = true; } +void DSWindow::setZOrder(unsigned int zOrder) +{ + DS_GET_PRIV(DSWindow); + + priv->__zOrder = zOrder; +} + +unsigned int DSWindow::getZOrder() +{ + DS_GET_PRIV(DSWindow); + + return priv->__zOrder; +} bool DSWindow::setVkbdFloating(bool set) { diff --git a/src/DSWindow/DSWindow.h b/src/DSWindow/DSWindow.h index 2907456..4f1922a 100644 --- a/src/DSWindow/DSWindow.h +++ b/src/DSWindow/DSWindow.h @@ -77,6 +77,9 @@ public: void setSize(unsigned int w, unsigned int h); void setSize(stSize size); + void setZOrder(unsigned int zOrder); + unsigned int getZOrder(); + bool setVkbdFloating(bool set); bool getVkbdFloating(); diff --git a/src/DSWindow/DSWindowPrivate.h b/src/DSWindow/DSWindowPrivate.h index b8be9ee..f250484 100644 --- a/src/DSWindow/DSWindowPrivate.h +++ b/src/DSWindow/DSWindowPrivate.h @@ -83,6 +83,7 @@ private: int __x, __y; unsigned int __w; unsigned int __h; + unsigned int __zOrder; unsigned int __committedW, __committedH; bool __created; bool __hasFocus; -- 2.7.4