class Drawable;
class Shape;
class DrawableGroup;
+ class Picture;
+
+ class Gradient;
+ class LinearGradient;
+ class RadialGradient;
public:
/**
bool AddDrawable(Drawable& drawable);
/**
+ * @brief Remove drawable object to the CanvasView.
+ * This method is similar to deregistration. Freeing memory is not concerned for drawables being removed.
+ * @param[in] drawable the drawable object.
+ * @return Returns True when it's successful. False otherwise.
+ */
+ bool RemoveDrawable(Drawable& drawable);
+
+ /**
+ * @brief Remove all drawable objects added to the CanvasRenderer.
+ * @return Returns True when it's successful. False otherwise.
+ */
+ bool RemoveAllDrawables();
+
+ /**
* @brief Returns the PixelBuffer, which is the Render buffer of Canvas.
*
* @return Returns the pixel buffer.
*/
const Vector2& GetSize();
+ /**
+ * @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();
+
public: // Not intended for application developers
/// @cond internal
/**