*/
// EXTERNAL INCLUDES
-#ifdef THORVG_SUPPORT
-#include <thorvg.h>
-#endif
#include <dali/public-api/object/base-object.h>
// INTERNAL INCLUDES
/**
* @brief Enumeration for type of drawable.
*/
- enum class DrawableTypes
+ enum class Types
{
NONE = 0, ///< Means that type is not defined.
SHAPE, ///< Meaning of Shape class that inherits Drawable.
virtual bool Transform(const Dali::Matrix3& matrix);
/**
- * @brief Set whether drawable added to the other object(canvas or drawable) or not.
+ * @copydoc Dali::CanvasRenderer::Drawable::GetBoundingBox
+ */
+ virtual Rect<float> GetBoundingBox() const;
+
+ /**
+ * @brief Set whether this drawable object was added to other object(CanvasRenderer or DrawableGroup) or not.
* @param[in] added Ture if added, false otherwise.
*/
- virtual void SetDrawableAdded(bool added);
+ virtual void SetAdded(bool added);
/**
- * @brief Returns whether this object was added to another object(canvas or drawable).
+ * @brief Returns whether this drawable object was added to another object(CanvasRenderer or DrawableGroup).
* @return Returns Ture if added, false otherwise.
*/
- virtual bool IsDrawableAdded();
+ virtual bool IsAdded() const;
/**
* @brief Returns a drawable object pointer.
* @brief Set drawable's type.
* @param[in] type Type of drawable.
*/
- virtual void SetDrawableType(DrawableTypes type);
+ virtual void SetType(Types type);
/**
* @brief Get drawable's type.
* @return Returns type of drawable.
*/
- virtual DrawableTypes GetDrawableType() const;
+ virtual Types GetType() const;
/**
* @brief Returns a drawable's implements object pointer.
Drawable& operator=(Drawable&&) = delete;
private:
- Dali::Internal::Adaptor::Drawable* pImpl = nullptr;
+ Dali::Internal::Adaptor::Drawable* mImpl = nullptr;
};
} // namespace Adaptor