*/
bool AddDrawable(Dali::CanvasRenderer::Drawable& drawable);
+ /**
+ * Called when a property of an object of this type is set.
+ * @param[in] object The object whose property is set.
+ * @param[in] propertyIndex The property index.
+ * @param[in] value The new property value.
+ */
+ static void SetProperty(BaseObject* object, Property::Index propertyIndex, const Property::Value& value);
+
+ /**
+ * Called to retrieve a property of an object of this type.
+ * @param[in] object The object whose property is to be retrieved.
+ * @param[in] propertyIndex The property index.
+ * @return The current value of the property.
+ */
+ static Property::Value GetProperty(BaseObject* object, Property::Index propertyIndex);
+
+ /**
+ * @copydoc Toolkit::Control::CanvasView::RemoveDrawable
+ */
+ bool RemoveDrawable(Dali::CanvasRenderer::Drawable& drawable);
+
+ /**
+ * @copydoc Toolkit::Control::CanvasView::RemoveAllDrawables
+ */
+ bool RemoveAllDrawables();
+
private: // From Control
/**
* @copydoc Control::OnRelayout
void OnInitialize() override;
/**
+ * @brief This is the viewbox of the Canvas.
+ * @param[in] viewBox The size of viewbox.
+ * @return Returns True when it's successful. False otherwise.
+ */
+ bool SetViewBox(const Vector2& viewBox);
+
+ /**
+ * @brief This is the viewbox of the Canvas.
+ * @return Returns The size of viewbox.
+ */
+ const Vector2& GetViewBox();
+
+ /**
* @bried Rasterize the canvas, and add it to the view.
*
* @param[in] size The target size of the canvas view rasterization.
/**
* @bried Apply the rasterized image to the canvas view
*
- * @param[in] rasterizedPixelData The pixel buffer with the rasterized pixels
+ * @param[in] rasterizedTexture The texture with the rasterized pixels
*/
- void ApplyRasterizedImage(PixelData rasterizedPixelData);
+ void ApplyRasterizedImage(Texture rasterizedTexture);
private:
CanvasView(const CanvasView&) = delete;