Merge "Implement Placeholder additional property" into devel/master
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / visuals / text-visual-properties.h
1 #ifndef DALI_TOOLKIT_TEXT_VISUAL_PROPERTIES_H
2 #define DALI_TOOLKIT_TEXT_VISUAL_PROPERTIES_H
3
4 /*
5  * Copyright (c) 2016 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/toolkit-property-index-ranges.h>
23
24 namespace Dali
25 {
26
27 namespace Toolkit
28 {
29
30 namespace TextVisual
31 {
32
33 namespace Property
34 {
35
36 enum
37 {
38   /**
39    * @brief The text to display in UTF-8 format,
40    * @details name "text", type STRING
41    */
42   TEXT = VISUAL_PROPERTY_START_INDEX,
43
44   /**
45    * @brief The requested font family to use,
46    * @details name "fontFamily", type STRING
47    */
48   FONT_FAMILY,
49
50   /**
51    * @brief The requested font style to use,
52    * @details name "fontStyle", type MAP
53    */
54   FONT_STYLE,
55
56   /**
57    * @brief The size of font in points
58    * @details name "pointSize", type FLOAT
59    */
60   POINT_SIZE,
61
62   /**
63    * @brief The single-line or multi-line layout option
64    * @details name "multiLine", type BOOLEAN, default false
65    */
66   MULTI_LINE,
67
68   /**
69    * @brief The line horizontal alignment
70    * @details name "horizontalAlignment", type STRING,  values "BEGIN", "CENTER", "END", default BEGIN
71    */
72   HORIZONTAL_ALIGNMENT,
73
74   /**
75    * @brief The line vertical alignment
76    * @details name "verticalAlignment", type STRING,  values "TOP",   "CENTER", "BOTTOM", default TOP
77    */
78   VERTICAL_ALIGNMENT,
79
80   /**
81    * @brief The color of the text
82    * @details name "textColor", type VECTOR4
83    */
84   TEXT_COLOR,
85
86   /**
87    * @brief  Whether the mark-up processing is enabled
88    * @details name "enableMarkup", type BOOLEAN
89    */
90   ENABLE_MARKUP,
91 };
92
93 } // namespace Property
94
95 } // namespace TextVisual
96
97 } // namespace Toolkit
98
99 } // namespace Dali
100
101 #endif // DALI_TOOLKIT_TEXT_VISUAL_PROPERTIES_H