654b2907c1a1d25afce0677d31c620d84492f54b
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / visuals / color-visual-properties-devel.h
1 #ifndef DALI_TOOLKIT_COLOR_VISUAL_PROPERTIES_DEVEL_H
2 #define DALI_TOOLKIT_COLOR_VISUAL_PROPERTIES_DEVEL_H
3
4 /*
5  * Copyright (c) 2020 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 // INTERNAL INCLUDES
22 #include <dali-toolkit/public-api/visuals/color-visual-properties.h>
23
24 namespace Dali
25 {
26
27 namespace Toolkit
28 {
29
30
31 namespace DevelColorVisual
32 {
33
34 /**
35  * @brief Additional ColorVisual Properties.
36  */
37 namespace Property
38 {
39
40 /**
41  * @brief Enumeration for the instance of additional properties belonging to the ColorVisual.
42  */
43 enum
44 {
45   MIX_COLOR = Toolkit::ColorVisual::Property::MIX_COLOR,
46
47   /**
48    * @brief Whether to render if the MIX_COLOR is transparent.
49    * @details Name "renderIfTransparent", type Property::BOOLEAN.
50    * @note Optional.
51    * @note By default it's false, i.e. ColorVisual will not render if the MIX_COLOR is transparent.
52    */
53   RENDER_IF_TRANSPARENT = MIX_COLOR + 1,
54
55   /**
56    * @brief The blur radius of the visual.
57    * @details Name "blurRadius", type Property::FLOAT.
58    *          If the value is 0, the edge is sharp. Otherwise, the larger the value, the more the edge is blurred.
59    * @note Optional.
60    * @note The default is 0.
61    * @note The visual size increases by the blur radius.
62    */
63   BLUR_RADIUS = MIX_COLOR + 2,
64 };
65
66 } // namespace Property
67
68 } // namespace ColorVisual
69
70 /**
71  * @}
72  */
73
74 } // namespace Toolkit
75
76 } // namespace Dali
77
78 #endif // DALI_TOOLKIT_COLOR_VISUAL_PROPERTIES_DEVEL_H