1 #ifndef DALI_WINDOW_DATA_H
2 #define DALI_WINDOW_DATA_H
5 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/public-api/adaptor-framework/window-enumerations.h>
23 #include <dali/public-api/dali-adaptor-common.h>
24 #include <dali/public-api/math/rect.h>
30 * The WindowData class is used as a parameter for the constructors of the Application class.
31 * The data from the WindowData object is used to customize the default window created by the Application class.
33 * The default values are below:
34 * PositionSize : x:0, y:0, w:0, h:0 (full-screen window)
35 * Transparency : true (Window is created with 32-bit color depth)
38 * If you want to customize the window, you can modify the values of the WindowData object as needed.
41 class DALI_ADAPTOR_API WindowData
45 * @brief Creates a WindowData object.
55 * @brief Sets the position and size
58 * @param[in] positionSize Position and Size
60 void SetPositionSize(Dali::Rect<int>& positionSize);
63 * @brief Gets the PositionSize
66 * @return The position and size
68 Dali::Rect<int> GetPositionSize() const;
71 * @brief Sets the transparency
74 * @param[in] transparent transparency
76 void SetTransparency(bool transparent);
79 * @brief Gets the transparency
82 * @return whether transparency
84 bool GetTransparency() const;
87 * @brief Sets the window type
90 * @param[in] type the window type
92 void SetWindowType(WindowType type);
95 * @brief Gets the window type
98 * @return the window type
100 WindowType GetWindowType() const;
104 std::unique_ptr<Impl> mImpl;
109 #endif // DALI_WINDOW_DATA_H