X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=blobdiff_plain;f=dali%2Fdevel-api%2Fadaptor-framework%2Fwindow-devel.h;h=eec41b7afb7ec79f53ec5b363fd2140eeb548c68;hp=9ed8a18d38373a72897fb9ffedbc0124a960add5;hb=263ec21432f3d7c9f9be5b463748fdce8f6942e4;hpb=43235b18c881038f256cc7ebdbaa13d0930122c6 diff --git a/dali/devel-api/adaptor-framework/window-devel.h b/dali/devel-api/adaptor-framework/window-devel.h index 9ed8a18..eec41b7 100644 --- a/dali/devel-api/adaptor-framework/window-devel.h +++ b/dali/devel-api/adaptor-framework/window-devel.h @@ -2,7 +2,7 @@ #define DALI_WINDOW_DEVEL_H /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,6 +35,71 @@ namespace DevelWindow */ DALI_ADAPTOR_API void SetPositionSize( Window window, PositionSize positionSize ); +/** + * @brief Adds a child Actor to the Window. + * + * The child will be referenced. + * @param[in] window The window instance + * @param[in] actor The child + * @pre The actor has been initialized. + * @pre The actor does not have a parent. + */ +DALI_ADAPTOR_API void Add( Window window, Dali::Actor actor ); + +/** + * @brief Removes a child Actor from the Window. + * + * The child will be unreferenced. + * @param[in] window The window instance + * @param[in] actor The child + * @pre The actor has been added to the stage. + */ +DALI_ADAPTOR_API void Remove( Window window, Dali::Actor actor ); + +/** + * @brief Sets the background color of the window. + * + * @param[in] window The window instance + * @param[in] color The new background color + */ +DALI_ADAPTOR_API void SetBackgroundColor( Window window, Vector4 color ); + +/** + * @brief Gets the background color of the surface. + * + * @param[in] window The window instance + * @return The background color + */ +DALI_ADAPTOR_API Vector4 GetBackgroundColor( Window window ); + +/** + * @brief Returns the Scene's Root Layer. + * + * @param[in] window The window instance + * @return The root layer + */ +DALI_ADAPTOR_API Dali::Layer GetRootLayer( Window window ); + +/** + * @brief Queries the number of on-stage layers. + * + * Note that a default layer is always provided (count >= 1). + * @param[in] window The window instance + * @return The number of layers + */ +DALI_ADAPTOR_API uint32_t GetLayerCount( Window window ); + +/** + * @brief Retrieves the layer at a specified depth. + * + * @param[in] window The window instance + * @param[in] depth The depth + * @return The layer found at the given depth + * @pre Depth is less than layer count; see GetLayerCount(). + */ +DALI_ADAPTOR_API Dali::Layer GetLayer( Window window, uint32_t depth ); + + } // namespace DevelWindow } // namespace Dali