X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fscene.cpp;h=38e2477eba520edf2d45672b10bb214589710605;hb=7cd83f52b8fd45e3c8089016b1b6b871d5b79d68;hp=0a1f690eb7e46552ad4dde02cfc7df5ee129896c;hpb=891f95adefdd739d38f14aaaee17cd66eacad972;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/scene.cpp b/dali/integration-api/scene.cpp index 0a1f690..38e2477 100644 --- a/dali/integration-api/scene.cpp +++ b/dali/integration-api/scene.cpp @@ -29,9 +29,9 @@ namespace Dali namespace Integration { -Scene Scene::New( const Size& size ) +Scene Scene::New( Integration::RenderSurface& surface ) { - Internal::ScenePtr internal = Internal::Scene::New( size ); + Internal::ScenePtr internal = Internal::Scene::New( surface ); return Scene( internal.Get() ); } @@ -64,12 +64,12 @@ Scene& Scene::operator=( const Scene& rhs ) return *this; } -void Scene::Add( Actor& actor ) +void Scene::Add( Actor actor ) { GetImplementation(*this).Add( GetImplementation(actor) ); } -void Scene::Remove( Actor& actor ) +void Scene::Remove( Actor actor ) { GetImplementation(*this).Remove( GetImplementation(actor) ); } @@ -89,6 +89,16 @@ Vector2 Scene::GetDpi() const return GetImplementation(*this).GetDpi(); } +void Scene::SetBackgroundColor( const Vector4& color ) +{ + GetImplementation(*this).SetBackgroundColor( color ); +} + +Vector4 Scene::GetBackgroundColor() const +{ + return GetImplementation(*this).GetBackgroundColor(); +} + RenderTaskList Scene::GetRenderTaskList() const { return RenderTaskList( &GetImplementation(*this).GetRenderTaskList() ); @@ -114,11 +124,26 @@ void Scene::SetSurface( Integration::RenderSurface& surface ) GetImplementation(*this).SetSurface( surface ); } +void Scene::SurfaceResized() +{ + GetImplementation( *this ).SurfaceResized(); +} + Integration::RenderSurface* Scene::GetSurface() const { return GetImplementation(*this).GetSurface(); } +void Scene::Discard() +{ + GetImplementation(*this).Discard(); +} + +Integration::Scene Scene::Get( Actor actor ) +{ + return Dali::Integration::Scene( &GetImplementation( actor ).GetScene() ); +} + void Scene::QueueEvent( const Integration::Event& event ) { GetImplementation(*this).QueueEvent( event );