/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
#include <dali/public-api/actors/layer.h>
// INTERNAL INCLUDES
-#include <dali/internal/offscreen/common/offscreen-application-impl.h>
#include <dali/internal/offscreen/common/offscreen-window-impl.h>
namespace Dali
{
-OffscreenWindow OffscreenWindow::New( uint16_t width, uint16_t height, bool isTranslucent )
+OffscreenWindow OffscreenWindow::New(uint16_t width, uint16_t height, bool isTranslucent)
{
- Any surface;
- IntrusivePtr< Internal::OffscreenWindow > impl = Internal::OffscreenWindow::New( width, height, surface, isTranslucent );
- OffscreenWindow window = OffscreenWindow( impl.Get() );
- impl->Initialize( false );
+ Any surface;
+ IntrusivePtr<Internal::OffscreenWindow> impl = Internal::OffscreenWindow::New(width, height, surface, isTranslucent);
+ OffscreenWindow window = OffscreenWindow(impl.Get());
+ impl->Initialize(false);
return window;
}
-OffscreenWindow OffscreenWindow::New( Any surface )
+OffscreenWindow OffscreenWindow::New(Any surface)
{
- IntrusivePtr< Internal::OffscreenWindow > impl = Internal::OffscreenWindow::New( 0, 0, surface, false );
- OffscreenWindow window = OffscreenWindow( impl.Get() );
- impl->Initialize( false );
+ IntrusivePtr<Internal::OffscreenWindow> impl = Internal::OffscreenWindow::New(0, 0, surface, false);
+ OffscreenWindow window = OffscreenWindow(impl.Get());
+ impl->Initialize(false);
return window;
}
-OffscreenWindow::OffscreenWindow()
-{
-}
+OffscreenWindow::OffscreenWindow() = default;
-OffscreenWindow::OffscreenWindow( const OffscreenWindow& window )
-: BaseHandle( window )
-{
-}
+OffscreenWindow::OffscreenWindow(const OffscreenWindow& window) = default;
-OffscreenWindow& OffscreenWindow::operator=( const OffscreenWindow& window )
-{
- if( *this != window )
- {
- BaseHandle::operator=( window );
- }
- return *this;
-}
+OffscreenWindow& OffscreenWindow::operator=(const OffscreenWindow& window) = default;
-OffscreenWindow::~OffscreenWindow()
-{
-}
+OffscreenWindow::OffscreenWindow(OffscreenWindow&& window) = default;
+
+OffscreenWindow& OffscreenWindow::operator=(OffscreenWindow&& window) = default;
-void OffscreenWindow::Add( Actor actor )
+OffscreenWindow::~OffscreenWindow() = default;
+
+void OffscreenWindow::Add(Actor actor)
{
- Internal::GetImplementation( *this ).Add( actor );
+ Internal::GetImplementation(*this).Add(actor);
}
-void OffscreenWindow::Remove( Actor actor )
+void OffscreenWindow::Remove(Actor actor)
{
- Internal::GetImplementation( *this ).Remove( actor );
+ Internal::GetImplementation(*this).Remove(actor);
}
-void OffscreenWindow::SetBackgroundColor( const Vector4& color )
+void OffscreenWindow::SetBackgroundColor(const Vector4& color)
{
- Internal::GetImplementation( *this ).SetBackgroundColor( color );
+ Internal::GetImplementation(*this).SetBackgroundColor(color);
}
Vector4 OffscreenWindow::GetBackgroundColor() const
{
- return Internal::GetImplementation( *this ).GetBackgroundColor();
+ return Internal::GetImplementation(*this).GetBackgroundColor();
}
Layer OffscreenWindow::GetRootLayer() const
{
- return Internal::GetImplementation( *this ).GetRootLayer();
+ return Internal::GetImplementation(*this).GetRootLayer();
}
uint32_t OffscreenWindow::GetLayerCount() const
{
- return Internal::GetImplementation( *this ).GetLayerCount();
+ return Internal::GetImplementation(*this).GetLayerCount();
}
-Layer OffscreenWindow::GetLayer( uint32_t depth ) const
+Layer OffscreenWindow::GetLayer(uint32_t depth) const
{
- return Internal::GetImplementation( *this ).GetLayer( depth );
+ return Internal::GetImplementation(*this).GetLayer(depth);
}
OffscreenWindow::WindowSize OffscreenWindow::GetSize() const
{
- return Internal::GetImplementation( *this ).GetSize();
+ return Internal::GetImplementation(*this).GetSize();
}
Any OffscreenWindow::GetNativeHandle() const
{
- return Internal::GetImplementation( *this ).GetNativeHandle();
+ return Internal::GetImplementation(*this).GetNativeHandle();
}
Uint16Pair OffscreenWindow::GetDpi() const
return Internal::GetImplementation(*this).GetDpi();
}
-OffscreenWindow::PostRenderSignalType& OffscreenWindow::PostRenderSignal()
+void OffscreenWindow::SetPostRenderCallback(CallbackBase* callback)
{
- return Internal::GetImplementation( *this ).PostRenderSignal();
+ Internal::GetImplementation(*this).SetPostRenderCallback(callback);
}
-
-OffscreenWindow::OffscreenWindow( Internal::OffscreenWindow* window )
-: BaseHandle( window )
+OffscreenWindow::OffscreenWindow(Internal::OffscreenWindow* window)
+: BaseHandle(window)
{
}
-} // namespace Dali
+} // namespace Dali