339b321dd2683d107fc18b377cb8cc0c849eb894
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / layouts / layout-alignment.h
1 #ifndef DALI_TOOLKIT_TEXT_LAYOUT_ALIGNMENT_H
2 #define DALI_TOOLKIT_TEXT_LAYOUT_ALIGNMENT_H
3
4 /*
5  * Copyright (c) 2017 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 namespace Dali
22 {
23
24 namespace Toolkit
25 {
26
27 namespace Text
28 {
29
30 namespace Layout
31 {
32
33 /**
34  * @brief Speficies the horizontal alignment.
35  *
36  * BEGIN is on the left for Left To Right languages whereas is right for Right To Left.
37  * Similarly, END is on the right for Left To Right languages and left for Right To Left.
38  */
39 enum HorizontalAlignment
40 {
41   HORIZONTAL_ALIGN_BEGIN,
42   HORIZONTAL_ALIGN_CENTER,
43   HORIZONTAL_ALIGN_END
44 };
45
46 /**
47  * @brief Speficies the vertical alignment.
48  */
49 enum VerticalAlignment
50 {
51   VERTICAL_ALIGN_TOP,
52   VERTICAL_ALIGN_CENTER,
53   VERTICAL_ALIGN_BOTTOM
54 };
55
56 enum AlignmentCount
57 {
58   HORIZONTAL_ALIGN_COUNT = HORIZONTAL_ALIGN_END + 1,
59   VERTICAL_ALIGN_COUNT = VERTICAL_ALIGN_BOTTOM + 1
60 };
61
62 } // namespace Layout
63
64 } // namespace Text
65
66 } // namespace Toolkit
67
68 } // namespace Dali
69
70 #endif // DALI_TOOLKIT_TEXT_LAYOUT_ALIGNMENT_H