X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fscene.cpp;h=5126377a1bbcfcd63c55a416499e17a39d58d024;hb=0d02e3722bdb9d2f65ae3679c6dfa12c6643a716;hp=717132cb2723eac8fe7fb99d8196cda1a3044eeb;hpb=d8944bba8449a3c5bce03041eccccf2eba4a7ae3;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/scene.cpp b/dali/integration-api/scene.cpp index 717132c..5126377 100644 --- a/dali/integration-api/scene.cpp +++ b/dali/integration-api/scene.cpp @@ -29,10 +29,10 @@ namespace Dali namespace Integration { -Scene Scene::New( Size size ) +Scene Scene::New( Integration::RenderSurface& surface ) { - Internal::ScenePtr internal = Internal::Scene::New( size ); - return Scene(internal.Get()); + Internal::ScenePtr internal = Internal::Scene::New( surface ); + return Scene( internal.Get() ); } Scene Scene::DownCast( BaseHandle handle ) @@ -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,6 +124,61 @@ void Scene::SetSurface( Integration::RenderSurface& surface ) GetImplementation(*this).SetSurface( surface ); } +void Scene::SurfaceResized( bool forceUpdate ) +{ + GetImplementation( *this ).SurfaceResized( forceUpdate ); +} + +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 ); +} + +void Scene::ProcessEvents() +{ + GetImplementation(*this).ProcessEvents(); +} + +Scene::EventProcessingFinishedSignalType& Scene::EventProcessingFinishedSignal() +{ + return GetImplementation(*this).EventProcessingFinishedSignal(); +} + +Scene::KeyEventSignalType& Scene::KeyEventSignal() +{ + return GetImplementation(*this).KeyEventSignal(); +} + +Scene::KeyEventGeneratedSignalType& Scene::KeyEventGeneratedSignal() +{ + return GetImplementation(*this).KeyEventGeneratedSignal(); +} + +Scene::TouchSignalType& Scene::TouchSignal() +{ + return GetImplementation(*this).TouchSignal(); +} + +Scene::WheelEventSignalType& Scene::WheelEventSignal() +{ + return GetImplementation(*this).WheelEventSignal(); +} + } // Integration } // Dali