/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 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.
Scene Scene::New( Size size )
{
Internal::ScenePtr internal = Internal::Scene::New( size );
- return Scene(internal.Get());
+ return Scene( internal.Get() );
}
Scene Scene::DownCast( BaseHandle handle )
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) );
}
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() );
return GetImplementation(*this).GetLayer( depth );
}
-void Scene::SetSurface( Integration::RenderSurface& surface )
+void Scene::SurfaceResized( float width, float height, int orientation, bool forceUpdate )
+{
+ GetImplementation( *this ).SurfaceResized( width, height, orientation, forceUpdate );
+}
+
+void Scene::SurfaceReplaced()
+{
+ GetImplementation( *this ).SurfaceReplaced();
+}
+
+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()
{
- GetImplementation(*this).SetSurface( surface );
+ return GetImplementation(*this).WheelEventSignal();
}
} // Integration