#include <dali/devel-api/common/stage.h>
// INTERNAL INCLUDES
-#include <dali/public-api/actors/actor.h>
-#include <dali/public-api/render-tasks/render-task-list.h>
-#include <dali/internal/event/common/stage-impl.h>
#include <dali/internal/common/core-impl.h>
+#include <dali/internal/event/common/stage-impl.h>
+#include <dali/public-api/actors/actor.h>
#include <dali/public-api/actors/layer.h>
#include <dali/public-api/object/object-registry.h>
+#include <dali/public-api/render-tasks/render-task-list.h>
namespace Dali
{
-
using Internal::Core;
-Stage::Stage()
-{
-}
+Stage::Stage() = default;
-Stage::~Stage()
-{
-}
+Stage::~Stage() = default;
-Stage::Stage(const Stage& handle)
-: BaseHandle(handle)
-{
-}
+Stage::Stage(const Stage& handle) = default;
-Stage& Stage::operator=(const Stage& rhs)
-{
- BaseHandle::operator=(rhs);
- return *this;
-}
+Stage& Stage::operator=(const Stage& rhs) = default;
Stage::Stage(Internal::Stage* internal)
: BaseHandle(internal)
Stage Stage::GetCurrent()
{
Internal::Stage* stage = Internal::Stage::GetCurrent();
- DALI_ASSERT_ALWAYS( stage && "Stage doesn't exist" );
- return Stage( stage );
+ DALI_ASSERT_ALWAYS(stage && "Stage doesn't exist");
+ return Stage(stage);
}
bool Stage::IsInstalled()
RenderTaskList Stage::GetRenderTaskList() const
{
- return RenderTaskList( &GetImplementation(*this).GetRenderTaskList() );
+ return RenderTaskList(&GetImplementation(*this).GetRenderTaskList());
}
Vector2 Stage::GetSize() const
ObjectRegistry Stage::GetObjectRegistry() const
{
Internal::Stage* stage = Internal::Stage::GetCurrent();
- DALI_ASSERT_ALWAYS( stage && "GetObjectRegistry() : Stage is null" );
+ DALI_ASSERT_ALWAYS(stage && "GetObjectRegistry() : Stage is null");
Internal::ObjectRegistry& internal = stage->GetObjectRegistry();
return ObjectRegistry(&internal);
}
-void Stage::KeepRendering( float durationSeconds )
+void Stage::KeepRendering(float durationSeconds)
{
- GetImplementation(*this).KeepRendering( durationSeconds );
+ GetImplementation(*this).KeepRendering(durationSeconds);
}
Stage::KeyEventSignalType& Stage::KeyEventSignal()
Stage::TouchEventSignalType& Stage::TouchedSignal()
{
- return GetImplementation( *this ).TouchedSignal();
+ return GetImplementation(*this).TouchedSignal();
}
Stage::WheelEventSignalType& Stage::WheelEventSignal()