return GetImplementation(*this).RemoveAllDrawables();
}
-bool CanvasRenderer::SetSize(const Vector2& size)
+bool CanvasRenderer::SetSize(Vector2 size)
{
return GetImplementation(*this).SetSize(size);
}
-const Vector2& CanvasRenderer::GetSize()
+Vector2 CanvasRenderer::GetSize() const
{
return GetImplementation(*this).GetSize();
}
* @param[in] size The size of canvas buffer.
* @return Returns True when it's successful. False otherwise.
*/
- bool SetSize(const Vector2& size);
+ bool SetSize(Vector2 size);
/**
* @brief This is the size of the Buffer in the Canvas.
* @return Returns The size of canvas buffer.
*/
- const Vector2& GetSize();
+ Vector2 GetSize() const;
/**
* @brief This is the viewbox of the Canvas.
return false;
}
-bool CanvasRenderer::SetSize(const Vector2& size)
+bool CanvasRenderer::SetSize(Vector2 size)
{
return false;
}
-const Vector2& CanvasRenderer::GetSize()
+Vector2 CanvasRenderer::GetSize() const
{
return Vector2::ZERO;
}
/**
* @copydoc Dali::CanvasRenderer::SetSize()
*/
- virtual bool SetSize(const Vector2& size);
+ virtual bool SetSize(Vector2 size);
/**
* @copydoc Dali::CanvasRenderer::GetSize()
*/
- virtual const Vector2& GetSize();
+ virtual Vector2 GetSize() const;
/**
* @copydoc Dali::CanvasRenderer::SetViewBox()
return false;
}
-bool CanvasRendererGeneric::SetSize(const Vector2& size)
+bool CanvasRendererGeneric::SetSize(Vector2 size)
{
return false;
}
-const Vector2& CanvasRendererGeneric::GetSize()
+Vector2 CanvasRendererGeneric::GetSize() const
{
return Vector2::ZERO;
}
/**
* @copydoc Dali::CanvasRenderer::SetSize()
*/
- bool SetSize(const Vector2& size) override;
+ bool SetSize(Vector2 size) override;
/**
* @copydoc Dali::CanvasRenderer::GetSize()
*/
- const Vector2& GetSize() override;
+ Vector2 GetSize() const override;
/**
* @copydoc Dali::CanvasRenderer::SetViewBox()
#endif
}
-bool CanvasRendererTizen::SetSize(const Vector2& size)
+bool CanvasRendererTizen::SetSize(Vector2 size)
{
if(size.width < 1.0f || size.height < 1.0f)
{
return true;
}
-const Vector2& CanvasRendererTizen::GetSize()
+Vector2 CanvasRendererTizen::GetSize() const
{
return mSize;
}
/**
* @copydoc Dali::CanvasRenderer::SetSize()
*/
- bool SetSize(const Vector2& size) override;
+ bool SetSize(Vector2 size) override;
/**
* @copydoc Dali::CanvasRenderer::GetSize()
*/
- const Vector2& GetSize() override;
+ Vector2 GetSize() const override;
/**
* @copydoc Dali::CanvasRenderer::SetViewBox()
#endif
}
-bool CanvasRendererUbuntu::SetSize(const Vector2& size)
+bool CanvasRendererUbuntu::SetSize(Vector2 size)
{
if(size.width < 1.0f || size.height < 1.0f)
{
return true;
}
-const Vector2& CanvasRendererUbuntu::GetSize()
+Vector2 CanvasRendererUbuntu::GetSize() const
{
return mSize;
}
/**
* @copydoc Dali::CanvasRenderer::SetSize()
*/
- bool SetSize(const Vector2& size) override;
+ bool SetSize(Vector2 size) override;
/**
* @copydoc Dali::CanvasRenderer::GetSize()
*/
- const Vector2& GetSize() override;
+ Vector2 GetSize() const override;
/**
* @copydoc Dali::CanvasRenderer::SetViewBox()