: DSObjectPrivate(p_ptr),
__p_ptr(p_ptr),
__parent(nullptr),
+ __type(0),
__x(0),
__y(0),
__w(0),
{
}
+void DSWindowPrivate::setType(int type)
+{
+ __type = type;
+}
+
+int DSWindowPrivate::getType(void)
+{
+ return __type;
+}
+
void DSWindowPrivate::setParent(DSWindow *parent)
{
__parent = parent;
priv->destroy();
}
+void DSWindow::setType(int type)
+{
+ DSLOG_DBG("DSWindow", "Set type (%d). DSWindow:%p", type, this);
+ DS_GET_PRIV(DSWindow);
+ priv->setType(type);
+}
+
+int DSWindow::getType(void)
+{
+ DS_GET_PRIV(DSWindow);
+ return priv->getType();
+}
+
void DSWindow::setParent(DSWindow *parent)
{
if (parent == this) return;
bool DSWindow::setTitle(const std::string &title)
{
- DSLOG_DBG("DSWindow", "title:%s", title.c_str());
+ DSLOG_DBG("DSWindow", "title:%s. DSWindow:%p", title.c_str(), this);
DS_GET_PRIV(DSWindow);
return priv->setTitle(title);
bool create(std::shared_ptr<DSWaylandSurface> waylandSurface);
void destroy(void);
+ void setType(int type);
+ int getType(void);
+
void setParent(DSWindow *parent);
DSWindow *getParent(void);
bool create(std::shared_ptr<DSWaylandSurface> waylandSurface);
void destroy(void);
+ void setType(int type);
+ int getType(void);
+
void setParent(DSWindow *parent);
DSWindow *getParent(void);
DSWindow *__parent;
std::list<DSWindow*> __childList;
+ int __type;
int __x, __y;
unsigned int __w;
unsigned int __h;