Add text wrapping hyphen mode support
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / text / text-enumerations-devel.h
1 #ifndef DALI_TOOLKIT_TEXT_ENUMERATIONS_DEVEL_H
2 #define DALI_TOOLKIT_TEXT_ENUMERATIONS_DEVEL_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 namespace Dali
22 {
23 namespace Toolkit
24 {
25 namespace DevelText
26 {
27 namespace TextDirection
28 {
29 enum Type
30 {
31   LEFT_TO_RIGHT,
32   RIGHT_TO_LEFT
33 };
34
35 } // namespace TextDirection
36
37 namespace VerticalLineAlignment
38 {
39 enum Type
40 {
41   TOP,
42   MIDDLE,
43   BOTTOM
44 };
45
46 } // namespace VerticalLineAlignment
47 namespace LineWrap
48 {
49 enum Mode
50 {
51   WORD,
52   CHARACTER,
53   HYPHENATION, // HYPHENATION mode will add hyphen and move part of the word to the next line.
54   MIXED        // MIXEd mode will apply WORD mode, if failed try HYPHENATION mode, if failed try CHARACTER.
55 };
56
57 } // namespace LineWrap
58
59 } // namespace DevelText
60
61 } // namespace Toolkit
62
63 } // namespace Dali
64
65 #endif //DALI_TOOLKIT_TEXT_ENUMERATIONS_DEVEL_H