2 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/public-api/adaptor-framework/window-data.h>
23 struct WindowData::Impl
26 : mPositionSize(0, 0, 0, 0),
28 mWindowType(WindowType::NORMAL),
29 mIsFrontBufferRendering(false)
33 Dali::Rect<int> mPositionSize; ///< The position and size of the Window
34 bool mIsTransparent; ///< The transparency of the Window
35 WindowType mWindowType; ///< The window type of the Window
36 bool mIsFrontBufferRendering; ///< The front buffer rendering of the Window
39 WindowData::WindowData()
40 : mImpl(std::make_unique<Impl>())
44 WindowData::~WindowData() = default;
46 void WindowData::SetPositionSize(Dali::Rect<int>& positionSize)
48 mImpl->mPositionSize = positionSize;
51 Dali::Rect<int> WindowData::GetPositionSize() const
53 return mImpl->mPositionSize;
56 void WindowData::SetTransparency(bool transparent)
58 mImpl->mIsTransparent = transparent;
61 bool WindowData::GetTransparency() const
63 return mImpl->mIsTransparent;
66 void WindowData::SetWindowType(WindowType type)
68 mImpl->mWindowType = type;
71 WindowType WindowData::GetWindowType() const
73 return mImpl->mWindowType;
76 void WindowData::SetFrontBufferRendering(bool enable)
78 mImpl->mIsFrontBufferRendering = enable;
81 bool WindowData::GetFrontBufferRendering() const
83 return mImpl->mIsFrontBufferRendering;