1 #ifndef DALI_WINDOW_DEVEL_H
2 #define DALI_WINDOW_DEVEL_H
5 * Copyright (c) 2019 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.h>
31 * @brief Sets position and size of the window. This API guarantees that both moving and resizing of window will appear on the screen at once.
33 * @param[in] window The window instance
34 * @param[in] positionSize The new window position and size
36 DALI_ADAPTOR_API void SetPositionSize( Window window, PositionSize positionSize );
39 * @brief Adds a child Actor to the Window.
41 * The child will be referenced.
42 * @param[in] window The window instance
43 * @param[in] actor The child
44 * @pre The actor has been initialized.
45 * @pre The actor does not have a parent.
47 DALI_ADAPTOR_API void Add( Window window, Dali::Actor actor );
50 * @brief Removes a child Actor from the Window.
52 * The child will be unreferenced.
53 * @param[in] window The window instance
54 * @param[in] actor The child
55 * @pre The actor has been added to the stage.
57 DALI_ADAPTOR_API void Remove( Window window, Dali::Actor actor );
60 * @brief Sets the background color of the window.
62 * @param[in] window The window instance
63 * @param[in] color The new background color
65 DALI_ADAPTOR_API void SetBackgroundColor( Window window, Vector4 color );
68 * @brief Gets the background color of the surface.
70 * @param[in] window The window instance
71 * @return The background color
73 DALI_ADAPTOR_API Vector4 GetBackgroundColor( Window window );
76 * @brief Returns the Scene's Root Layer.
78 * @param[in] window The window instance
79 * @return The root layer
81 DALI_ADAPTOR_API Dali::Layer GetRootLayer( Window window );
84 * @brief Queries the number of on-stage layers.
86 * Note that a default layer is always provided (count >= 1).
87 * @param[in] window The window instance
88 * @return The number of layers
90 DALI_ADAPTOR_API uint32_t GetLayerCount( Window window );
93 * @brief Retrieves the layer at a specified depth.
95 * @param[in] window The window instance
96 * @param[in] depth The depth
97 * @return The layer found at the given depth
98 * @pre Depth is less than layer count; see GetLayerCount().
100 DALI_ADAPTOR_API Dali::Layer GetLayer( Window window, uint32_t depth );
103 } // namespace DevelWindow
107 #endif // DALI_WINDOW_DEVEL_H