Merge "Fix resource leaks in layouting." into devel/master
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / third-party / yoga / YGEnums.h
1 /**
2  * Copyright (c) 2014-present, Facebook, Inc.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7
8 #pragma once
9
10 #include "YGMacros.h"
11
12 YG_EXTERN_C_BEGIN
13
14 #define YGAlignCount 8
15 typedef YG_ENUM_BEGIN(YGAlign) {
16   YGAlignAuto,
17   YGAlignFlexStart,
18   YGAlignCenter,
19   YGAlignFlexEnd,
20   YGAlignStretch,
21   YGAlignBaseline,
22   YGAlignSpaceBetween,
23   YGAlignSpaceAround,
24 } YG_ENUM_END(YGAlign);
25 WIN_EXPORT const char *YGAlignToString(const YGAlign value);
26
27 #define YGDimensionCount 2
28 typedef YG_ENUM_BEGIN(YGDimension) {
29   YGDimensionWidth,
30   YGDimensionHeight,
31 } YG_ENUM_END(YGDimension);
32 WIN_EXPORT const char *YGDimensionToString(const YGDimension value);
33
34 #define YGDirectionCount 3
35 typedef YG_ENUM_BEGIN(YGDirection) {
36   YGDirectionInherit,
37   YGDirectionLTR,
38   YGDirectionRTL,
39 } YG_ENUM_END(YGDirection);
40 WIN_EXPORT const char *YGDirectionToString(const YGDirection value);
41
42 #define YGDisplayCount 2
43 typedef YG_ENUM_BEGIN(YGDisplay) {
44   YGDisplayFlex,
45   YGDisplayNone,
46 } YG_ENUM_END(YGDisplay);
47 WIN_EXPORT const char *YGDisplayToString(const YGDisplay value);
48
49 #define YGEdgeCount 9
50 typedef YG_ENUM_BEGIN(YGEdge) {
51   YGEdgeLeft,
52   YGEdgeTop,
53   YGEdgeRight,
54   YGEdgeBottom,
55   YGEdgeStart,
56   YGEdgeEnd,
57   YGEdgeHorizontal,
58   YGEdgeVertical,
59   YGEdgeAll,
60 } YG_ENUM_END(YGEdge);
61 WIN_EXPORT const char *YGEdgeToString(const YGEdge value);
62
63 #define YGExperimentalFeatureCount 1
64 typedef YG_ENUM_BEGIN(YGExperimentalFeature) {
65   YGExperimentalFeatureWebFlexBasis,
66 } YG_ENUM_END(YGExperimentalFeature);
67 WIN_EXPORT const char *YGExperimentalFeatureToString(const YGExperimentalFeature value);
68
69 #define YGFlexDirectionCount 4
70 typedef YG_ENUM_BEGIN(YGFlexDirection) {
71   YGFlexDirectionColumn,
72   YGFlexDirectionColumnReverse,
73   YGFlexDirectionRow,
74   YGFlexDirectionRowReverse,
75 } YG_ENUM_END(YGFlexDirection);
76 WIN_EXPORT const char *YGFlexDirectionToString(const YGFlexDirection value);
77
78 #define YGJustifyCount 6
79 typedef YG_ENUM_BEGIN(YGJustify){
80     YGJustifyFlexStart,
81     YGJustifyCenter,
82     YGJustifyFlexEnd,
83     YGJustifySpaceBetween,
84     YGJustifySpaceAround,
85     YGJustifySpaceEvenly,
86 } YG_ENUM_END(YGJustify);
87 WIN_EXPORT const char *YGJustifyToString(const YGJustify value);
88
89 #define YGLogLevelCount 6
90 typedef YG_ENUM_BEGIN(YGLogLevel) {
91   YGLogLevelError,
92   YGLogLevelWarn,
93   YGLogLevelInfo,
94   YGLogLevelDebug,
95   YGLogLevelVerbose,
96   YGLogLevelFatal,
97 } YG_ENUM_END(YGLogLevel);
98 WIN_EXPORT const char *YGLogLevelToString(const YGLogLevel value);
99
100 #define YGMeasureModeCount 3
101 typedef YG_ENUM_BEGIN(YGMeasureMode) {
102   YGMeasureModeUndefined,
103   YGMeasureModeExactly,
104   YGMeasureModeAtMost,
105 } YG_ENUM_END(YGMeasureMode);
106 WIN_EXPORT const char *YGMeasureModeToString(const YGMeasureMode value);
107
108 #define YGNodeTypeCount 2
109 typedef YG_ENUM_BEGIN(YGNodeType) {
110   YGNodeTypeDefault,
111   YGNodeTypeText,
112 } YG_ENUM_END(YGNodeType);
113 WIN_EXPORT const char *YGNodeTypeToString(const YGNodeType value);
114
115 #define YGOverflowCount 3
116 typedef YG_ENUM_BEGIN(YGOverflow) {
117   YGOverflowVisible,
118   YGOverflowHidden,
119   YGOverflowScroll,
120 } YG_ENUM_END(YGOverflow);
121 WIN_EXPORT const char *YGOverflowToString(const YGOverflow value);
122
123 #define YGPositionTypeCount 2
124 typedef YG_ENUM_BEGIN(YGPositionType) {
125   YGPositionTypeRelative,
126   YGPositionTypeAbsolute,
127 } YG_ENUM_END(YGPositionType);
128 WIN_EXPORT const char *YGPositionTypeToString(const YGPositionType value);
129
130 #define YGPrintOptionsCount 3
131 typedef YG_ENUM_BEGIN(YGPrintOptions) {
132   YGPrintOptionsLayout = 1,
133   YGPrintOptionsStyle = 2,
134   YGPrintOptionsChildren = 4,
135 } YG_ENUM_END(YGPrintOptions);
136 WIN_EXPORT const char *YGPrintOptionsToString(const YGPrintOptions value);
137
138 #define YGUnitCount 4
139 typedef YG_ENUM_BEGIN(YGUnit) {
140   YGUnitUndefined,
141   YGUnitPoint,
142   YGUnitPercent,
143   YGUnitAuto,
144 } YG_ENUM_END(YGUnit);
145 WIN_EXPORT const char *YGUnitToString(const YGUnit value);
146
147 #define YGWrapCount 3
148 typedef YG_ENUM_BEGIN(YGWrap) {
149   YGWrapNoWrap,
150   YGWrapWrap,
151   YGWrapWrapReverse,
152 } YG_ENUM_END(YGWrap);
153 WIN_EXPORT const char *YGWrapToString(const YGWrap value);
154
155 YG_EXTERN_C_END