1 #ifndef DALI_TOOLKIT_DEVEL_API_VISUALS_VISUAL_PROPERTIES_DEVEL_H
2 #define DALI_TOOLKIT_DEVEL_API_VISUALS_VISUAL_PROPERTIES_DEVEL_H
5 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 #include <dali-toolkit/public-api/visuals/visual-properties.h>
34 * @brief All the visual types.
38 BORDER = Dali::Toolkit::Visual::BORDER,
39 COLOR = Dali::Toolkit::Visual::COLOR,
40 GRADIENT = Dali::Toolkit::Visual::GRADIENT,
41 IMAGE = Dali::Toolkit::Visual::IMAGE,
42 MESH = Dali::Toolkit::Visual::MESH,
43 PRIMITIVE = Dali::Toolkit::Visual::PRIMITIVE,
44 WIREFRAME = Dali::Toolkit::Visual::WIREFRAME,
46 TEXT = WIREFRAME + 1, ///< Renders text.
54 TYPE = Dali::Toolkit::Visual::Property::TYPE,
55 SHADER = Dali::Toolkit::Visual::Property::SHADER,
58 * @brief The transform used by the visual.
59 * @details Name "transform", type Property::Map.
62 * @see DevelVisual::Transform::Property
64 TRANSFORM = SHADER + 1,
67 * @brief Enables/disables premultiplied alpha.
68 * The premultiplied alpha is false by default unless this behaviour is modified
69 * by the derived Visual type.
71 * @details Name "premultipliedAlpha", type Property::Boolean.
75 PREMULTIPLIED_ALPHA = SHADER + 2,
78 * @brief Mix color is a blend color for any visual.
79 * @details Name "mixColor", type Property::VECTOR3 or Property::VECTOR4
83 MIX_COLOR = SHADER + 3,
86 * @brief Opacity is the alpha component of the mixColor, above.
87 * @details Name "opacity", type Property::FLOAT
94 } //namespace Property
105 * @brief Offset of the visual. It can be either relative (percentage of the parent)
106 * or absolute (in world units).
107 * @details Name "offset", type Property::VECTOR2
112 * @brief Size of the visual. It can be either relative (percentage of the parent)
113 * or absolute (in world units).
114 * @details Name "size", type Property::VECTOR2
119 * @brief The origin of the visual within its control area.
120 * @details Name "origin", type Align::Type (Property::INTEGER) or Property::STRING.
121 * @see Toolkit::Align
126 * @brief The anchor-point of the visual
127 * @details Name "anchorPoint", type Align::Type (Property::INTEGER) or Property::STRING.
128 * @see Toolkit::Align
133 * @brief Indicates which components of the offset and size are relative
134 * (percentage of the parent) or absolute (in world units).
135 * 0 indicates the component is relative, and 1 absolute.
136 * @details Name "offsetSizeMode", type Property::VECTOR4
141 } //namespace Property
143 } // namespace Transform
145 } // namespace DevelVisual
147 } // namespace Toolkit
151 #endif // DALI_TOOLKIT_DEVEL_API_VISUALS_VISUAL_PROPERTIES_DEVEL_H