Change-Id: Id654f7157043a6e62e0e407e6c183691db6e694d
mPlugin.CreateRenderer( url, renderer, width, height );
}
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();
bool VectorAnimationRenderer::StartRender()
{
return mPlugin.StartRender();
void Initialize( const std::string& url, Dali::Renderer renderer, uint32_t width, uint32_t height );
/**
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();
* @copydoc Dali::VectorAnimationRenderer::StartRender()
*/
bool StartRender();
+void VectorAnimationRendererPluginProxy::SetSize( uint32_t width, uint32_t height )
+{
+ if( mPlugin )
+ {
+ mPlugin->SetSize( width, height );
+ }
+}
+
bool VectorAnimationRendererPluginProxy::StartRender()
{
if( mPlugin )
bool VectorAnimationRendererPluginProxy::StartRender()
{
if( mPlugin )
bool CreateRenderer( const std::string& url, Dali::Renderer renderer, uint32_t width, uint32_t height );
/**
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();
* @copydoc Dali::VectorAnimationRendererPlugin::StartRender()
*/
bool StartRender();
virtual bool CreateRenderer( const std::string& url, Renderer renderer, uint32_t width, uint32_t height ) = 0;
/**
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
* @brief Starts the rendering.
*
* @return True if the renderer is successfully started, false otherwise
+void VectorAnimationRenderer::SetSize( uint32_t width, uint32_t height )
+{
+ GetImplementation( *this ).SetSize( width, height );
+}
+
bool VectorAnimationRenderer::StartRender()
{
return GetImplementation( *this ).StartRender();
bool VectorAnimationRenderer::StartRender()
{
return GetImplementation( *this ).StartRender();
VectorAnimationRenderer& operator=( const VectorAnimationRenderer& rhs );
/**
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.
* @brief Starts the rendering.
*
* @return True if the renderer is successfully started, false otherwise.