2 * Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved.
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
24 #ifndef _DS_WINDOW_PRIVATE_H_
25 #define _DS_WINDOW_PRIVATE_H_
28 #include "DSObjectPrivate.h"
29 #include "DSWaylandSurface.h"
30 #include "DSRenderView.h"
31 #include "IDSDisplayDeviceHWCWindow.h"
33 namespace display_server
38 class DSWindowPrivate : public DSObjectPrivate, public DSObject
40 DS_PIMPL_USE_PUBLIC(DSWindow)
43 DSWindowPrivate() = delete;
44 DSWindowPrivate(DSWindow *p_ptr);
47 bool create(std::shared_ptr<DSWaylandSurface> waylandSurface);
50 void setParent(DSWindow *parent);
51 DSWindow *getParent(void);
54 bool hide(bool autoFocus);
57 bool setTitle(const std::string &title);
58 const std::string getTitle(void);
60 bool setSkipFocus(bool set);
61 bool getSkipFocus(void);
63 void allowUserGeometry(bool set);
64 bool isAllowUserGeometry(void);
66 bool setLayer(int layer);
72 bool unsetFocus(void);
76 bool setVkbdFloating(bool set);
77 bool getVkbdFloating();
79 void setRenderView(std::shared_ptr<DSRenderView> &renderView);
80 void setDisplayDeviceHWCWindow(std::shared_ptr<IDSDisplayDeviceHWCWindow> &displayDeviceHWCWindow);
83 void __onSurfaceCommitted(std::shared_ptr<DSWaylandSurfaceCommitInfo> waylandSurfaceCommitInfo);
86 std::list<DSWindow*> __childList;
90 unsigned int __zOrder;
91 unsigned int __committedW, __committedH;
94 std::shared_ptr<DSWaylandSurface> __waylandSurface;
96 bool __allowUserGeometry;
101 std::shared_ptr<DSRenderView> __renderView;
102 std::shared_ptr<IDSDisplayDeviceHWCWindow> __displayDeviceHWCWindow;
107 #endif // _DS_WINDOW_PRIVATE_H_