09f22f70aeb05867827b800ac6f2dc65ef74eb51
[platform/core/uifw/dali-adaptor.git] / dali / internal / canvas-renderer / generic / drawable-group-impl-generic.h
1 #ifndef DALI_INTERNAL_GENERIC_DRAWABLE_GROUP_INTERFACE_GENERIC_H
2 #define DALI_INTERNAL_GENERIC_DRAWABLE_GROUP_INTERFACE_GENERIC_H
3
4 /*
5  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <dali/public-api/object/base-object.h>
23
24 // INTERNAL INCLUDES
25 #include <dali/devel-api/adaptor-framework/canvas-renderer-drawable-group.h>
26 #include <dali/internal/canvas-renderer/common/drawable-group-impl.h>
27
28 namespace Dali
29 {
30 namespace Internal
31 {
32 namespace Adaptor
33 {
34 /**
35  * Dali internal DrawableGroup.
36  */
37 class DrawableGroupGeneric : public Dali::Internal::Adaptor::DrawableGroup
38 {
39 public:
40   /**
41    * @brief Creates a DrawableGroup object.
42    * @return A pointer to a newly allocated drawablegroup
43    */
44   static DrawableGroupGeneric* New();
45
46   /**
47    * @copydoc Dali::CanvasRenderer::DrawableGroup::AddDrawable()
48    */
49   bool AddDrawable(Dali::CanvasRenderer::Drawable& drawable) override;
50
51   /**
52    * @copydoc Dali::CanvasRenderer::DrawableGroup::Clear
53    */
54   bool Clear() override;
55
56 private:
57   DrawableGroupGeneric(const DrawableGroupGeneric&) = delete;
58   DrawableGroupGeneric& operator=(DrawableGroupGeneric&) = delete;
59   DrawableGroupGeneric(DrawableGroupGeneric&&)           = delete;
60   DrawableGroupGeneric& operator=(DrawableGroupGeneric&&) = delete;
61
62   /**
63    * @brief Constructor
64    */
65   DrawableGroupGeneric();
66
67   /**
68    * @brief Destructor.
69    */
70   virtual ~DrawableGroupGeneric() override;
71 };
72
73 } // namespace Adaptor
74
75 } // namespace Internal
76
77 } // namespace Dali
78
79 #endif // DALI_INTERNAL_GENERIC_DRAWABLE_GROUP_INTERFACE_GENERIC_H