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)
32 Dali::Rect<int> mPositionSize; ///< The position and size of the Window
33 bool mIsTransparent; ///< The transparency of the Window
34 WindowType mWindowType; ///< The window type of the Window
37 WindowData::WindowData()
38 : mImpl(std::make_unique<Impl>())
42 WindowData::~WindowData() = default;
44 void WindowData::SetPositionSize(Dali::Rect<int>& positionSize)
46 mImpl->mPositionSize = positionSize;
49 Dali::Rect<int> WindowData::GetPositionSize() const
51 return mImpl->mPositionSize;
54 void WindowData::SetTransparency(bool transparent)
56 mImpl->mIsTransparent = transparent;
59 bool WindowData::GetTransparency() const
61 return mImpl->mIsTransparent;
64 void WindowData::SetWindowType(WindowType type)
66 mImpl->mWindowType = type;
69 WindowType WindowData::GetWindowType() const
71 return mImpl->mWindowType;