Merge "Fix resource leaks in layouting." into devel/master
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / third-party / yoga / YGStyle.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 #include "YGFloatOptional.h"
10 #include "Yoga-internal.h"
11 #include "Yoga.h"
12
13 struct YGStyle {
14   YGDirection direction;
15   YGFlexDirection flexDirection;
16   YGJustify justifyContent;
17   YGAlign alignContent;
18   YGAlign alignItems;
19   YGAlign alignSelf;
20   YGPositionType positionType;
21   YGWrap flexWrap;
22   YGOverflow overflow;
23   YGDisplay display;
24   YGFloatOptional flex;
25   YGFloatOptional flexGrow;
26   YGFloatOptional flexShrink;
27   YGValue flexBasis;
28   std::array<YGValue, YGEdgeCount> margin;
29   std::array<YGValue, YGEdgeCount> position;
30   std::array<YGValue, YGEdgeCount> padding;
31   std::array<YGValue, YGEdgeCount> border;
32   std::array<YGValue, 2> dimensions;
33   std::array<YGValue, 2> minDimensions;
34   std::array<YGValue, 2> maxDimensions;
35   YGFloatOptional aspectRatio;
36
37   YGStyle();
38   // Yoga specific properties, not compatible with flexbox specification
39   bool operator==(const YGStyle& style);
40
41   bool operator!=(const YGStyle& style);
42   ~YGStyle();
43 };