return Internal::Adaptor::Window::Get( actor );
}
+void Add( Window window, Dali::Actor actor )
+{
+ GetImplementation( window ).Add( actor );
+}
+
+void Remove( Window window, Dali::Actor actor )
+{
+ GetImplementation( window ).Remove( actor );
+}
+
+void SetBackgroundColor( Window window, Vector4 color )
+{
+ GetImplementation( window ).SetBackgroundColor( color );
+}
+
+Vector4 GetBackgroundColor( Window window )
+{
+ return GetImplementation( window ).GetBackgroundColor();
+}
+
+Dali::Layer GetRootLayer( Window window )
+{
+ return GetImplementation( window ).GetRootLayer();
+}
+
+uint32_t GetLayerCount( Window window )
+{
+ return GetImplementation( window ).GetLayerCount();
+}
+
+Dali::Layer GetLayer( Window window, uint32_t depth )
+{
+ return GetImplementation( window ).GetLayer( depth );
+}
+
EventProcessingFinishedSignalType& EventProcessingFinishedSignal( Window window )
{
return GetImplementation( window ).EventProcessingFinishedSignal();
DALI_ADAPTOR_API Window Get( Actor actor );
/**
+ * @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 );
+
+/**
* @brief This signal is emitted just after the event processing is finished.
*
* @param[in] window The window instance
return mSurface.get();
}
-void SceneHolder::SetBackgroundColor( const Vector4& color )
+void SceneHolder::SetBackgroundColor( Vector4 color )
{
if ( mSurface )
{
/**
* @copydoc Dali::Integration::SceneHolder::SetBackgroundColor
*/
- void SetBackgroundColor( const Dali::Vector4& color );
+ void SetBackgroundColor( Dali::Vector4 color );
/**
* @copydoc Dali::Integration::SceneHolder::GetBackgroundColor
}
}
-Dali::Layer Window::GetRootLayer() const
+Dali::Layer Window::GetRootLayer()
{
return mScene.GetRootLayer();
}
void SetPositionSize( PositionSize positionSize );
/**
- * @copydoc Dali::Window::GetRootLayer()
+ * @copydoc Dali::DevelWindow::GetRootLayer()
*/
- Dali::Layer GetRootLayer() const;
+ Dali::Layer GetRootLayer();
/**
* @copydoc Dali::Window::SetTransparency()
/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
return *this;
}
-void Window::Add( Dali::Actor actor )
-{
- GetImplementation( *this ).Add( actor );
-}
-
-void Window::Remove( Dali::Actor actor )
-{
- GetImplementation( *this ).Remove( actor );
-}
-
-void Window::SetBackgroundColor( const Vector4& color )
-{
- GetImplementation( *this ).SetBackgroundColor( color );
-}
-
-Vector4 Window::GetBackgroundColor() const
-{
- return GetImplementation( *this ).GetBackgroundColor();
-}
-
-Layer Window::GetRootLayer() const
-{
- return GetImplementation( *this ).GetRootLayer();
-}
-
-uint32_t Window::GetLayerCount() const
-{
- return GetImplementation( *this ).GetLayerCount();
-}
-
-Layer Window::GetLayer( uint32_t depth ) const
-{
- return GetImplementation( *this ).GetLayer( depth );
-}
-
void Window::ShowIndicator( IndicatorVisibleMode visibleMode )
{
DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: ShowIndicator is deprecated and will be removed from next release.\n" );
#define DALI_WINDOW_H
/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 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.
Window& operator=(const Window& rhs);
/**
- * @brief Adds a child Actor to the Window.
- *
- * The child will be referenced.
- *
- * @SINCE_1_4.19
- * @param[in] actor The child
- * @pre The actor has been initialized.
- * @pre The actor does not have a parent.
- */
- void Add( Actor actor );
-
- /**
- * @brief Removes a child Actor from the Window.
- *
- * The child will be unreferenced.
- *
- * @SINCE_1_4.19
- * @param[in] actor The child
- * @pre The actor has been added to the stage.
- */
- void Remove( Actor actor );
-
- /**
- * @brief Sets the background color of the Window.
- *
- * @SINCE_1_4.19
- * @param[in] color The new background color
- */
- void SetBackgroundColor( const Vector4& color );
-
- /**
- * @brief Gets the background color of the Window.
- *
- * @SINCE_1_4.19
- * @return The background color
- */
- Vector4 GetBackgroundColor() const;
-
- /**
- * @brief Returns the root Layer of the Window.
- *
- * @SINCE_1_4.19
- * @return The root layer
- */
- Layer GetRootLayer() const;
-
- /**
- * @brief Queries the number of on-scene layers in the Window.
- *
- * Note that a default layer is always provided (count >= 1).
- *
- * @SINCE_1_4.19
- * @return The number of layers
- */
- uint32_t GetLayerCount() const;
-
- /**
- * @brief Retrieves the layer at a specified depth in the Window.
- *
- * @SINCE_1_4.19
- * @param[in] depth The depth
- * @return The layer found at the given depth
- * @pre Depth is less than layer count; see GetLayerCount().
- */
- Layer GetLayer( uint32_t depth ) const;
-
- /**
* @DEPRECATED_1_4.9
* @brief This sets whether the indicator bar should be shown or not.
* @SINCE_1_0.0
WindowOrientation GetPreferredOrientation();
/**
- * @DEPRECATED_1_4.19 Was not intended for Application developers
* @brief Returns an empty handle.
* @note Not intended for application developers.
* @SINCE_1_0.0
* @return An empty handle
*/
- DragAndDropDetector GetDragAndDropDetector() const DALI_DEPRECATED_API;
+ DragAndDropDetector GetDragAndDropDetector() const;
/**
* @brief Gets the native handle of the window.