X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fscene.h;h=c53c413e432f6e69154fba5a7a742eb477d79a01;hb=7cd83f52b8fd45e3c8089016b1b6b871d5b79d68;hp=3e2cbf59dbc01b9a3258c1f0dedb50eb029f9d53;hpb=549a2607c34e55e9cfe2839ee76fcae65d180c10;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/scene.h b/dali/integration-api/scene.h index 3e2cbf5..c53c413 100755 --- a/dali/integration-api/scene.h +++ b/dali/integration-api/scene.h @@ -21,6 +21,7 @@ // INTERNAL INCLUDES #include #include +#include namespace Dali { @@ -60,11 +61,11 @@ public: /** * @brief Create an initialized Scene handle. * - * @param[in] size The size of the scene in pixels as a Vector + * @param[in] surface Binds this rendering surface to this scene * * @return a handle to a newly allocated Dali resource. */ - static Scene New( const Size& size ); + static Scene New( Integration::RenderSurface& surface ); /** * @brief Downcast an Object handle to Scene handle. @@ -114,7 +115,7 @@ public: * @pre The actor has been initialized. * @pre The actor does not have a parent. */ - void Add(Actor& actor); + void Add(Actor actor); /** * @brief Removes a child Actor from the Scene. @@ -123,7 +124,7 @@ public: * @param[in] actor The child * @pre The actor has been added to the stage. */ - void Remove(Actor& actor); + void Remove(Actor actor); /** * @brief Returns the size of the Scene in pixels as a Vector. @@ -149,6 +150,20 @@ public: Vector2 GetDpi() const; /** + * @brief Sets the background color. + * + * @param[in] color The new background color + */ + void SetBackgroundColor( const Vector4& color ); + + /** + * @brief Gets the background color of the render surface. + * + * @return The background color + */ + Vector4 GetBackgroundColor() const; + + /** * @brief Retrieves the list of render-tasks. * * @return A valid handle to a RenderTaskList @@ -187,6 +202,11 @@ public: void SetSurface( Integration::RenderSurface& surface ); /** + * @brief Informs the scene that the set surface has been resized. + */ + void SurfaceResized(); + + /** * @brief Gets the rendering surface bound to the scene * * @return The render surface @@ -194,6 +214,17 @@ public: Integration::RenderSurface* GetSurface() const; /** + * @brief Discards this Scene from the Core. + */ + void Discard(); + + /** + * @brief Retrieve the Scene that the given actor belongs to. + * @return The Scene. + */ + static Integration::Scene Get( Actor actor ); + + /** * This function is called when an event is queued. * @param[in] event A event to queue. */