X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Fcanvas-view%2Fcanvas-view.h;h=390cabd8046c451deb5f2a05fdfab18d55709303;hp=9607d2ce2248344a36cdfc256188a0da0f1b4d83;hb=5dc73d3884a562e86f4a30999d3af9c37ace925a;hpb=d3e4ed352b1b3436394c7a218a961487b7ee00fa diff --git a/dali-toolkit/devel-api/controls/canvas-view/canvas-view.h b/dali-toolkit/devel-api/controls/canvas-view/canvas-view.h index 9607d2c..390cabd 100644 --- a/dali-toolkit/devel-api/controls/canvas-view/canvas-view.h +++ b/dali-toolkit/devel-api/controls/canvas-view/canvas-view.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_CANVAS_VIEW_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,8 +22,8 @@ #include // EXTERNAL INCLUDES -#include -#include +#include +#include namespace Dali { @@ -157,9 +157,23 @@ public: /** * @brief Add drawable object to the CanvasView. * This method is similar to registration. The added shape is drawn on the inner canvas. + * @param[in] drawable the drawable object. */ void AddDrawable(Dali::CanvasRenderer::Drawable& drawable); + /** + * @brief Remove drawable object to the CanvasView. + * This method is similar to deregistration. + * @param[in] drawable the drawable object. + * @return Returns True when it's successful. False otherwise. + */ + bool RemoveDrawable(Dali::CanvasRenderer::Drawable& drawable); + + /** + * @brief Remove all drawable objects added to the CanvasView. + */ + void RemoveAllDrawables(); + public: // Not intended for application developers /// @cond internal /**