CanvasRenderer: Add missing parentheses for @copydoc
[platform/core/uifw/dali-adaptor.git] / dali / internal / canvas-renderer / ubuntu / drawable-impl-ubuntu.h
1 #ifndef DALI_INTERNAL_UBUNTU_DRAWABLE_IMPL_UBUNTU_H
2 #define DALI_INTERNAL_UBUNTU_DRAWABLE_IMPL_UBUNTU_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 #ifdef THORVG_SUPPORT
23 #include <thorvg.h>
24 #endif
25 #include <dali/public-api/object/base-object.h>
26
27 // INTERNAL INCLUDES
28 #include <dali/devel-api/adaptor-framework/canvas-renderer-drawable.h>
29 #include <dali/devel-api/adaptor-framework/canvas-renderer.h>
30 #include <dali/internal/canvas-renderer/common/drawable-impl.h>
31 #include <dali/internal/canvas-renderer/ubuntu/canvas-renderer-impl-ubuntu.h>
32
33 namespace Dali
34 {
35 namespace Internal
36 {
37 namespace Adaptor
38 {
39 /**
40  * Dali internal Drawable.
41  */
42 class DrawableUbuntu : public Dali::Internal::Adaptor::Drawable
43 {
44 public:
45   /**
46    * @brief Creates a Drawable object.
47    * @return A pointer to a newly allocated Drawable
48    */
49   static DrawableUbuntu* New();
50
51   /**
52    * @copydoc Dali::CanvasRenderer::Drawable::SetOpacity()
53    */
54   bool SetOpacity(float opacity) override;
55
56   /**
57    * @copydoc Dali::CanvasRenderer::Drawable::GetOpacity()
58    */
59   float GetOpacity() const override;
60
61   /**
62    * @copydoc Dali::CanvasRenderer::Drawable::Rotate()
63    */
64   bool Rotate(Degree degree) override;
65
66   /**
67    * @copydoc Dali::CanvasRenderer::Drawable::Scale()
68    */
69   bool Scale(float factor) override;
70
71   /**
72    * @copydoc Dali::CanvasRenderer::Drawable::Translate()
73    */
74   bool Translate(Vector2 translate) override;
75
76   /**
77    * @copydoc Dali::CanvasRenderer::Drawable::Transform()
78    */
79   bool Transform(const Dali::Matrix3& matrix) override;
80
81   /**
82    * @copydoc Dali::CanvasRenderer::Drawable::GetBoundingBox()
83    */
84   Rect<float> GetBoundingBox() const override;
85
86   /**
87    * @copydoc Internal::Adaptor::Drawable::SetAdded()
88    */
89   void SetAdded(bool added) override;
90
91   /**
92    * @copydoc Internal::Adaptor::Drawable::IsAdded()
93    */
94   bool IsAdded() const override;
95
96   /**
97    * @copydoc Internal::Adaptor::Drawable::SetObject()
98    */
99   void* GetObject() const override;
100
101   /**
102    * @copydoc Internal::Adaptor::Drawable::GetObject()
103    */
104   void SetObject(const void* object) override;
105
106   /**
107    * @copydoc Internal::Adaptor::Drawable::SetChanged()
108    */
109   void SetChanged(bool changed) override;
110
111   /**
112    * @copydoc Internal::Adaptor::Drawable::GetChanged()
113    */
114   bool GetChanged() const override;
115
116   /**
117    * @copydoc Internal::Adaptor::Drawable::SetType()
118    */
119   void SetType(Types type);
120
121   /**
122    * @copydoc Internal::Adaptor::Drawable::GetType()
123    */
124   Types GetType() const;
125
126   DrawableUbuntu(const Drawable&) = delete;
127   DrawableUbuntu& operator=(Drawable&) = delete;
128   DrawableUbuntu(Drawable&&)           = delete;
129   DrawableUbuntu& operator=(Drawable&&) = delete;
130
131 protected:
132   /**
133    * @brief Constructor
134    */
135   DrawableUbuntu();
136
137   /**
138    * @brief Destructor.
139    */
140   virtual ~DrawableUbuntu() override;
141
142 private:
143   bool            mAdded;
144   bool            mChanged;
145   Drawable::Types mType;
146
147 #ifdef THORVG_SUPPORT
148   tvg::Paint* mTvgPaint;
149 #endif
150 };
151
152 } // namespace Adaptor
153
154 } // namespace Internal
155
156 } // namespace Dali
157
158 #endif // DALI_INTERNAL_UBUNTU_DRAWABLE_IMPL_UBUNTU_H