mPlugin.CreateRenderer( url, renderer, width, height );
}
+void VectorAnimationRenderer::SetSize( uint32_t width, uint32_t height )
+{
+ mPlugin.SetSize( width, height );
+}
+
bool VectorAnimationRenderer::StartRender()
{
return mPlugin.StartRender();
void Initialize( const std::string& url, Dali::Renderer renderer, uint32_t width, uint32_t height );
/**
+ * @copydoc Dali::VectorAnimationRenderer::SetSize()
+ */
+ void SetSize( uint32_t width, uint32_t height );
+
+ /**
* @copydoc Dali::VectorAnimationRenderer::StartRender()
*/
bool StartRender();
return false;
}
+void VectorAnimationRendererPluginProxy::SetSize( uint32_t width, uint32_t height )
+{
+ if( mPlugin )
+ {
+ mPlugin->SetSize( width, height );
+ }
+}
+
bool VectorAnimationRendererPluginProxy::StartRender()
{
if( mPlugin )
bool CreateRenderer( const std::string& url, Dali::Renderer renderer, uint32_t width, uint32_t height );
/**
+ * @copydoc Dali::VectorAnimationRendererPlugin::SetSize()
+ */
+ void SetSize( uint32_t width, uint32_t height );
+
+ /**
* @copydoc Dali::VectorAnimationRendererPlugin::StartRender()
*/
bool StartRender();
virtual bool CreateRenderer( const std::string& url, Renderer renderer, uint32_t width, uint32_t height ) = 0;
/**
+ * @brief Sets the target image size.
+ *
+ * @param[in] width The target image width
+ * @param[in] height The target image height
+ */
+ virtual void SetSize( uint32_t width, uint32_t height ) = 0;
+
+ /**
* @brief Starts the rendering.
*
* @return True if the renderer is successfully started, false otherwise
return *this;
}
+void VectorAnimationRenderer::SetSize( uint32_t width, uint32_t height )
+{
+ GetImplementation( *this ).SetSize( width, height );
+}
+
bool VectorAnimationRenderer::StartRender()
{
return GetImplementation( *this ).StartRender();
VectorAnimationRenderer& operator=( const VectorAnimationRenderer& rhs );
/**
+ * @brief Sets the target image size.
+ *
+ * @param[in] width The target image width
+ * @param[in] height The target image height
+ */
+ void SetSize( uint32_t width, uint32_t height );
+
+ /**
* @brief Starts the rendering.
*
* @return True if the renderer is successfully started, false otherwise.