public:
Window( const PositionSize& positionSize )
- : mScene( Dali::Integration::Scene::New( Size( positionSize.width, positionSize.height ) ) ),
- mRenderSurface( new TestRenderSurface( positionSize ) )
+ : mRenderSurface( positionSize ),
+ mScene( Dali::Integration::Scene::New( mRenderSurface ) )
{
- mScene.SetSurface( *mRenderSurface );
}
- virtual ~Window()
- {
- delete mRenderSurface;
- mRenderSurface = nullptr;
- }
+ virtual ~Window() = default;
static Window* New(const PositionSize& positionSize, const std::string& name, const std::string& className, bool isTransparent)
{
return new Window( positionSize );
}
+ TestRenderSurface mRenderSurface;
Integration::Scene mScene;
- TestRenderSurface* mRenderSurface;
};
} // Adaptor
{
}
+Window::Window(const Window& handle)
+: BaseHandle( handle )
+{
+}
+
+Window& Window::operator=(const Window& rhs)
+{
+ BaseHandle::operator=(rhs);
+ return *this;
+}
+
Dali::Window Window::New( PositionSize windowPosition, const std::string& name, bool isTransparent )
{
Internal::Adaptor::Window* window = Internal::Adaptor::Window::New( windowPosition, name, "", isTransparent );
Integration::RenderSurface& Window::GetRenderSurface()
{
- return *GetImplementation( *this ).mRenderSurface;
+ return GetImplementation( *this ).mRenderSurface;
}
namespace DevelWindow