[4.0] (VectorAnimationRenderer) Add SetSize method 32/195132/1
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 26 Nov 2018 06:09:06 +0000 (15:09 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 10 Dec 2018 03:00:00 +0000 (12:00 +0900)
Change-Id: Id654f7157043a6e62e0e407e6c183691db6e694d

adaptors/common/vector-animation-renderer-impl.cpp
adaptors/common/vector-animation-renderer-impl.h
adaptors/common/vector-animation-renderer-plugin-proxy.cpp
adaptors/common/vector-animation-renderer-plugin-proxy.h
adaptors/devel-api/adaptor-framework/vector-animation-renderer-plugin.h
adaptors/devel-api/adaptor-framework/vector-animation-renderer.cpp
adaptors/devel-api/adaptor-framework/vector-animation-renderer.h

index 9489b30..a4661be 100644 (file)
@@ -65,6 +65,11 @@ void VectorAnimationRenderer::Initialize( const std::string& url, Dali::Renderer
   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();
index c6a70a3..32243f6 100755 (executable)
@@ -57,6 +57,11 @@ public:
   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();
index 9aec054..848fb23 100644 (file)
@@ -109,6 +109,14 @@ bool VectorAnimationRendererPluginProxy::CreateRenderer( const std::string& url,
   return false;
 }
 
+void VectorAnimationRendererPluginProxy::SetSize( uint32_t width, uint32_t height )
+{
+  if( mPlugin )
+  {
+    mPlugin->SetSize( width, height );
+  }
+}
+
 bool VectorAnimationRendererPluginProxy::StartRender()
 {
   if( mPlugin )
index 08ed236..c0e7dbd 100644 (file)
@@ -53,6 +53,11 @@ public:
   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();
index 316d007..bb4ef85 100644 (file)
@@ -56,6 +56,14 @@ public:
   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
index 0f6282c..acec34b 100755 (executable)
@@ -59,6 +59,11 @@ VectorAnimationRenderer& VectorAnimationRenderer::operator=( const VectorAnimati
   return *this;
 }
 
+void VectorAnimationRenderer::SetSize( uint32_t width, uint32_t height )
+{
+  GetImplementation( *this ).SetSize( width, height );
+}
+
 bool VectorAnimationRenderer::StartRender()
 {
   return GetImplementation( *this ).StartRender();
index 5b3bf35..97bff19 100755 (executable)
@@ -82,6 +82,14 @@ public:
   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.