12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /**
- * Copyright (c) 2014-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
- #pragma once
- #include "YGFloatOptional.h"
- #include "Yoga-internal.h"
- #include "Yoga.h"
- struct YGStyle {
- YGDirection direction;
- YGFlexDirection flexDirection;
- YGJustify justifyContent;
- YGAlign alignContent;
- YGAlign alignItems;
- YGAlign alignSelf;
- YGPositionType positionType;
- YGWrap flexWrap;
- YGOverflow overflow;
- YGDisplay display;
- YGFloatOptional flex;
- YGFloatOptional flexGrow;
- YGFloatOptional flexShrink;
- YGValue flexBasis;
- std::array<YGValue, YGEdgeCount> margin;
- std::array<YGValue, YGEdgeCount> position;
- std::array<YGValue, YGEdgeCount> padding;
- std::array<YGValue, YGEdgeCount> border;
- std::array<YGValue, 2> dimensions;
- std::array<YGValue, 2> minDimensions;
- std::array<YGValue, 2> maxDimensions;
- YGFloatOptional aspectRatio;
- YGStyle();
- // Yoga specific properties, not compatible with flexbox specification
- bool operator==(const YGStyle& style);
- bool operator!=(YGStyle style);
- ~YGStyle();
- };
|