react-native-windows 0.81.0 → 0.81.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/HighResTimeStamp.h +41 -0
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/timing/primitives.h +298 -0
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/YGEnums.h +146 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/algorithm/CalculateLayout.cpp +2435 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/enums/ExperimentalFeature.h +40 -0
- package/Scripts/Tfs/Layout-MSRN-Headers.ps1 +3 -0
- package/package.json +2 -2
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
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 <react/bridging/Base.h>
|
|
11
|
+
#include <react/timing/primitives.h>
|
|
12
|
+
|
|
13
|
+
namespace facebook::react {
|
|
14
|
+
|
|
15
|
+
template <>
|
|
16
|
+
struct Bridging<HighResTimeStamp> {
|
|
17
|
+
static HighResTimeStamp fromJs(
|
|
18
|
+
jsi::Runtime& /*rt*/,
|
|
19
|
+
const jsi::Value& jsiValue) {
|
|
20
|
+
return HighResTimeStamp::fromDOMHighResTimeStamp(jsiValue.asNumber());
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static double toJs(jsi::Runtime& /*rt*/, const HighResTimeStamp& value) {
|
|
24
|
+
return value.toDOMHighResTimeStamp();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
template <>
|
|
29
|
+
struct Bridging<HighResDuration> {
|
|
30
|
+
static HighResDuration fromJs(
|
|
31
|
+
jsi::Runtime& /*rt*/,
|
|
32
|
+
const jsi::Value& jsiValue) {
|
|
33
|
+
return HighResDuration::fromDOMHighResTimeStamp(jsiValue.asNumber());
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
static double toJs(jsi::Runtime& /*rt*/, const HighResDuration& value) {
|
|
37
|
+
return value.toDOMHighResTimeStamp();
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
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 <chrono>
|
|
11
|
+
|
|
12
|
+
namespace facebook::react {
|
|
13
|
+
|
|
14
|
+
class HighResDuration;
|
|
15
|
+
class HighResTimeStamp;
|
|
16
|
+
|
|
17
|
+
/*
|
|
18
|
+
* A class representing a duration of time with high precision.
|
|
19
|
+
*
|
|
20
|
+
* @see __docs__/README.md for more information.
|
|
21
|
+
*/
|
|
22
|
+
class HighResDuration {
|
|
23
|
+
friend class HighResTimeStamp;
|
|
24
|
+
friend constexpr HighResDuration operator-(
|
|
25
|
+
const HighResTimeStamp& lhs,
|
|
26
|
+
const HighResTimeStamp& rhs);
|
|
27
|
+
friend constexpr HighResTimeStamp operator+(
|
|
28
|
+
const HighResTimeStamp& lhs,
|
|
29
|
+
const HighResDuration& rhs);
|
|
30
|
+
friend constexpr HighResTimeStamp operator-(
|
|
31
|
+
const HighResTimeStamp& lhs,
|
|
32
|
+
const HighResDuration& rhs);
|
|
33
|
+
|
|
34
|
+
public:
|
|
35
|
+
constexpr HighResDuration()
|
|
36
|
+
: chronoDuration_(std::chrono::steady_clock::duration()) {}
|
|
37
|
+
|
|
38
|
+
static constexpr HighResDuration zero() {
|
|
39
|
+
return HighResDuration(std::chrono::steady_clock::duration::zero());
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
static constexpr HighResDuration fromChrono(
|
|
43
|
+
std::chrono::steady_clock::duration chronoDuration) {
|
|
44
|
+
return HighResDuration(chronoDuration);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static constexpr HighResDuration fromNanoseconds(int64_t units) {
|
|
48
|
+
return HighResDuration(std::chrono::nanoseconds(units));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
static constexpr HighResDuration fromMilliseconds(int64_t units) {
|
|
52
|
+
return HighResDuration(std::chrono::milliseconds(units));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
constexpr int64_t toNanoseconds() const {
|
|
56
|
+
return std::chrono::duration_cast<std::chrono::nanoseconds>(chronoDuration_)
|
|
57
|
+
.count();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// @see https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp
|
|
61
|
+
static constexpr HighResDuration fromDOMHighResTimeStamp(double units) {
|
|
62
|
+
auto nanoseconds = static_cast<int64_t>(units * 1e6);
|
|
63
|
+
return fromNanoseconds(nanoseconds);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// @see https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp
|
|
67
|
+
constexpr double toDOMHighResTimeStamp() const {
|
|
68
|
+
return static_cast<std::chrono::duration<double, std::milli>>(
|
|
69
|
+
chronoDuration_)
|
|
70
|
+
.count();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
constexpr HighResDuration operator+(const HighResDuration& rhs) const {
|
|
74
|
+
return HighResDuration(chronoDuration_ + rhs.chronoDuration_);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
constexpr HighResDuration operator+(
|
|
78
|
+
const std::chrono::steady_clock::duration& rhs) const {
|
|
79
|
+
return HighResDuration(chronoDuration_ + rhs);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
constexpr HighResDuration operator-(const HighResDuration& rhs) const {
|
|
83
|
+
return HighResDuration(chronoDuration_ - rhs.chronoDuration_);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
constexpr HighResDuration operator-(
|
|
87
|
+
const std::chrono::steady_clock::duration& rhs) const {
|
|
88
|
+
return HighResDuration(chronoDuration_ - rhs);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
constexpr HighResDuration& operator+=(const HighResDuration& rhs) {
|
|
92
|
+
chronoDuration_ += rhs.chronoDuration_;
|
|
93
|
+
return *this;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
constexpr HighResDuration& operator+=(
|
|
97
|
+
const std::chrono::steady_clock::duration& rhs) {
|
|
98
|
+
chronoDuration_ += rhs;
|
|
99
|
+
return *this;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
constexpr HighResDuration& operator-=(const HighResDuration& rhs) {
|
|
103
|
+
chronoDuration_ -= rhs.chronoDuration_;
|
|
104
|
+
return *this;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
constexpr HighResDuration& operator-=(
|
|
108
|
+
const std::chrono::steady_clock::duration& rhs) {
|
|
109
|
+
chronoDuration_ -= rhs;
|
|
110
|
+
return *this;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
constexpr bool operator==(const HighResDuration& rhs) const {
|
|
114
|
+
return chronoDuration_ == rhs.chronoDuration_;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
constexpr bool operator==(
|
|
118
|
+
const std::chrono::steady_clock::duration& rhs) const {
|
|
119
|
+
return chronoDuration_ == rhs;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
constexpr bool operator!=(const HighResDuration& rhs) const {
|
|
123
|
+
return chronoDuration_ != rhs.chronoDuration_;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
constexpr bool operator!=(
|
|
127
|
+
const std::chrono::steady_clock::duration& rhs) const {
|
|
128
|
+
return chronoDuration_ != rhs;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
constexpr bool operator<(const HighResDuration& rhs) const {
|
|
132
|
+
return chronoDuration_ < rhs.chronoDuration_;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
constexpr bool operator<(
|
|
136
|
+
const std::chrono::steady_clock::duration& rhs) const {
|
|
137
|
+
return chronoDuration_ < rhs;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
constexpr bool operator<=(const HighResDuration& rhs) const {
|
|
141
|
+
return chronoDuration_ <= rhs.chronoDuration_;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
constexpr bool operator<=(
|
|
145
|
+
const std::chrono::steady_clock::duration& rhs) const {
|
|
146
|
+
return chronoDuration_ <= rhs;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
constexpr bool operator>(const HighResDuration& rhs) const {
|
|
150
|
+
return chronoDuration_ > rhs.chronoDuration_;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
constexpr bool operator>(
|
|
154
|
+
const std::chrono::steady_clock::duration& rhs) const {
|
|
155
|
+
return chronoDuration_ > rhs;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
constexpr bool operator>=(const HighResDuration& rhs) const {
|
|
159
|
+
return chronoDuration_ >= rhs.chronoDuration_;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
constexpr bool operator>=(
|
|
163
|
+
const std::chrono::steady_clock::duration& rhs) const {
|
|
164
|
+
return chronoDuration_ >= rhs;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
constexpr operator std::chrono::steady_clock::duration() const {
|
|
168
|
+
return chronoDuration_;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
private:
|
|
172
|
+
explicit constexpr HighResDuration(
|
|
173
|
+
std::chrono::steady_clock::duration chronoDuration)
|
|
174
|
+
: chronoDuration_(chronoDuration) {}
|
|
175
|
+
|
|
176
|
+
std::chrono::steady_clock::duration chronoDuration_;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
/*
|
|
180
|
+
* A class representing a specific point in time with high precision.
|
|
181
|
+
*
|
|
182
|
+
* @see __docs__/README.md for more information.
|
|
183
|
+
*/
|
|
184
|
+
class HighResTimeStamp {
|
|
185
|
+
friend constexpr HighResDuration operator-(
|
|
186
|
+
const HighResTimeStamp& lhs,
|
|
187
|
+
const HighResTimeStamp& rhs);
|
|
188
|
+
friend constexpr HighResTimeStamp operator+(
|
|
189
|
+
const HighResTimeStamp& lhs,
|
|
190
|
+
const HighResDuration& rhs);
|
|
191
|
+
friend constexpr HighResTimeStamp operator-(
|
|
192
|
+
const HighResTimeStamp& lhs,
|
|
193
|
+
const HighResDuration& rhs);
|
|
194
|
+
|
|
195
|
+
public:
|
|
196
|
+
HighResTimeStamp() noexcept
|
|
197
|
+
: chronoTimePoint_(std::chrono::steady_clock::now()) {}
|
|
198
|
+
|
|
199
|
+
static constexpr HighResTimeStamp now() noexcept {
|
|
200
|
+
return HighResTimeStamp(std::chrono::steady_clock::now());
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
static constexpr HighResTimeStamp min() noexcept {
|
|
204
|
+
return HighResTimeStamp(std::chrono::steady_clock::time_point::min());
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
static constexpr HighResTimeStamp max() noexcept {
|
|
208
|
+
return HighResTimeStamp(std::chrono::steady_clock::time_point::max());
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// @see https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp
|
|
212
|
+
static constexpr HighResTimeStamp fromDOMHighResTimeStamp(double units) {
|
|
213
|
+
auto nanoseconds = static_cast<int64_t>(units * 1e6);
|
|
214
|
+
return HighResTimeStamp(std::chrono::steady_clock::time_point(
|
|
215
|
+
std::chrono::nanoseconds(nanoseconds)));
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// @see https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp
|
|
219
|
+
constexpr double toDOMHighResTimeStamp() const {
|
|
220
|
+
return HighResDuration(chronoTimePoint_.time_since_epoch())
|
|
221
|
+
.toDOMHighResTimeStamp();
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// This method is expected to be used only when converting time stamps from
|
|
225
|
+
// external systems.
|
|
226
|
+
static constexpr HighResTimeStamp fromChronoSteadyClockTimePoint(
|
|
227
|
+
std::chrono::steady_clock::time_point chronoTimePoint) {
|
|
228
|
+
return HighResTimeStamp(chronoTimePoint);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// This method is provided for convenience, if you need to convert
|
|
232
|
+
// HighResTimeStamp to some common epoch with time stamps from other sources.
|
|
233
|
+
constexpr std::chrono::steady_clock::time_point toChronoSteadyClockTimePoint()
|
|
234
|
+
const {
|
|
235
|
+
return chronoTimePoint_;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
constexpr bool operator==(const HighResTimeStamp& rhs) const {
|
|
239
|
+
return chronoTimePoint_ == rhs.chronoTimePoint_;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
constexpr bool operator!=(const HighResTimeStamp& rhs) const {
|
|
243
|
+
return chronoTimePoint_ != rhs.chronoTimePoint_;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
constexpr bool operator<(const HighResTimeStamp& rhs) const {
|
|
247
|
+
return chronoTimePoint_ < rhs.chronoTimePoint_;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
constexpr bool operator<=(const HighResTimeStamp& rhs) const {
|
|
251
|
+
return chronoTimePoint_ <= rhs.chronoTimePoint_;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
constexpr bool operator>(const HighResTimeStamp& rhs) const {
|
|
255
|
+
return chronoTimePoint_ > rhs.chronoTimePoint_;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
constexpr bool operator>=(const HighResTimeStamp& rhs) const {
|
|
259
|
+
return chronoTimePoint_ >= rhs.chronoTimePoint_;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
constexpr HighResTimeStamp& operator+=(const HighResDuration& rhs) {
|
|
263
|
+
chronoTimePoint_ += rhs.chronoDuration_;
|
|
264
|
+
return *this;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
constexpr HighResTimeStamp& operator-=(const HighResDuration& rhs) {
|
|
268
|
+
chronoTimePoint_ -= rhs.chronoDuration_;
|
|
269
|
+
return *this;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
private:
|
|
273
|
+
explicit constexpr HighResTimeStamp(
|
|
274
|
+
std::chrono::steady_clock::time_point chronoTimePoint)
|
|
275
|
+
: chronoTimePoint_(chronoTimePoint) {}
|
|
276
|
+
|
|
277
|
+
std::chrono::steady_clock::time_point chronoTimePoint_;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
inline constexpr HighResDuration operator-(
|
|
281
|
+
const HighResTimeStamp& lhs,
|
|
282
|
+
const HighResTimeStamp& rhs) {
|
|
283
|
+
return HighResDuration(lhs.chronoTimePoint_ - rhs.chronoTimePoint_);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
inline constexpr HighResTimeStamp operator+(
|
|
287
|
+
const HighResTimeStamp& lhs,
|
|
288
|
+
const HighResDuration& rhs) {
|
|
289
|
+
return HighResTimeStamp(lhs.chronoTimePoint_ + rhs.chronoDuration_);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
inline constexpr HighResTimeStamp operator-(
|
|
293
|
+
const HighResTimeStamp& lhs,
|
|
294
|
+
const HighResDuration& rhs) {
|
|
295
|
+
return HighResTimeStamp(lhs.chronoTimePoint_ - rhs.chronoDuration_);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
} // namespace facebook::react
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.81.
|
|
13
|
+
<ReactNativeWindowsVersion>0.81.2</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>81</ReactNativeWindowsMinor>
|
|
16
|
-
<ReactNativeWindowsPatch>
|
|
16
|
+
<ReactNativeWindowsPatch>2</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
18
|
+
<ReactNativeWindowsCommitId>2589a216e30d0edb9b2be922ba8b5a3fb6ce2591</ReactNativeWindowsCommitId>
|
|
19
19
|
</PropertyGroup>
|
|
20
20
|
</Project>
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
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
|
+
// @generated by enums.py
|
|
9
|
+
// clang-format off
|
|
10
|
+
#pragma once
|
|
11
|
+
#include <yoga/YGMacros.h>
|
|
12
|
+
|
|
13
|
+
YG_EXTERN_C_BEGIN
|
|
14
|
+
|
|
15
|
+
YG_ENUM_DECL(
|
|
16
|
+
YGAlign,
|
|
17
|
+
YGAlignAuto,
|
|
18
|
+
YGAlignFlexStart,
|
|
19
|
+
YGAlignCenter,
|
|
20
|
+
YGAlignFlexEnd,
|
|
21
|
+
YGAlignStretch,
|
|
22
|
+
YGAlignBaseline,
|
|
23
|
+
YGAlignSpaceBetween,
|
|
24
|
+
YGAlignSpaceAround,
|
|
25
|
+
YGAlignSpaceEvenly)
|
|
26
|
+
|
|
27
|
+
YG_ENUM_DECL(
|
|
28
|
+
YGBoxSizing,
|
|
29
|
+
YGBoxSizingBorderBox,
|
|
30
|
+
YGBoxSizingContentBox)
|
|
31
|
+
|
|
32
|
+
YG_ENUM_DECL(
|
|
33
|
+
YGDimension,
|
|
34
|
+
YGDimensionWidth,
|
|
35
|
+
YGDimensionHeight)
|
|
36
|
+
|
|
37
|
+
YG_ENUM_DECL(
|
|
38
|
+
YGDirection,
|
|
39
|
+
YGDirectionInherit,
|
|
40
|
+
YGDirectionLTR,
|
|
41
|
+
YGDirectionRTL)
|
|
42
|
+
|
|
43
|
+
YG_ENUM_DECL(
|
|
44
|
+
YGDisplay,
|
|
45
|
+
YGDisplayFlex,
|
|
46
|
+
YGDisplayNone,
|
|
47
|
+
YGDisplayContents)
|
|
48
|
+
|
|
49
|
+
YG_ENUM_DECL(
|
|
50
|
+
YGEdge,
|
|
51
|
+
YGEdgeLeft,
|
|
52
|
+
YGEdgeTop,
|
|
53
|
+
YGEdgeRight,
|
|
54
|
+
YGEdgeBottom,
|
|
55
|
+
YGEdgeStart,
|
|
56
|
+
YGEdgeEnd,
|
|
57
|
+
YGEdgeHorizontal,
|
|
58
|
+
YGEdgeVertical,
|
|
59
|
+
YGEdgeAll)
|
|
60
|
+
|
|
61
|
+
YG_ENUM_DECL(
|
|
62
|
+
YGErrata,
|
|
63
|
+
YGErrataNone = 0,
|
|
64
|
+
YGErrataStretchFlexBasis = 1,
|
|
65
|
+
YGErrataAbsolutePositionWithoutInsetsExcludesPadding = 2,
|
|
66
|
+
YGErrataAbsolutePercentAgainstInnerSize = 4,
|
|
67
|
+
YGErrataAll = 2147483647,
|
|
68
|
+
YGErrataClassic = 2147483646)
|
|
69
|
+
YG_DEFINE_ENUM_FLAG_OPERATORS(YGErrata)
|
|
70
|
+
|
|
71
|
+
YG_ENUM_DECL(
|
|
72
|
+
YGExperimentalFeature,
|
|
73
|
+
YGExperimentalFeatureWebFlexBasis,
|
|
74
|
+
YGExperimentalFeatureCallMeasureCallbackOnAllNodes) // [Win] - Only used within NetUI in Office - Keep this flag at the end of the enum
|
|
75
|
+
|
|
76
|
+
YG_ENUM_DECL(
|
|
77
|
+
YGFlexDirection,
|
|
78
|
+
YGFlexDirectionColumn,
|
|
79
|
+
YGFlexDirectionColumnReverse,
|
|
80
|
+
YGFlexDirectionRow,
|
|
81
|
+
YGFlexDirectionRowReverse)
|
|
82
|
+
|
|
83
|
+
YG_ENUM_DECL(
|
|
84
|
+
YGGutter,
|
|
85
|
+
YGGutterColumn,
|
|
86
|
+
YGGutterRow,
|
|
87
|
+
YGGutterAll)
|
|
88
|
+
|
|
89
|
+
YG_ENUM_DECL(
|
|
90
|
+
YGJustify,
|
|
91
|
+
YGJustifyFlexStart,
|
|
92
|
+
YGJustifyCenter,
|
|
93
|
+
YGJustifyFlexEnd,
|
|
94
|
+
YGJustifySpaceBetween,
|
|
95
|
+
YGJustifySpaceAround,
|
|
96
|
+
YGJustifySpaceEvenly)
|
|
97
|
+
|
|
98
|
+
YG_ENUM_DECL(
|
|
99
|
+
YGLogLevel,
|
|
100
|
+
YGLogLevelError,
|
|
101
|
+
YGLogLevelWarn,
|
|
102
|
+
YGLogLevelInfo,
|
|
103
|
+
YGLogLevelDebug,
|
|
104
|
+
YGLogLevelVerbose,
|
|
105
|
+
YGLogLevelFatal)
|
|
106
|
+
|
|
107
|
+
YG_ENUM_DECL(
|
|
108
|
+
YGMeasureMode,
|
|
109
|
+
YGMeasureModeUndefined,
|
|
110
|
+
YGMeasureModeExactly,
|
|
111
|
+
YGMeasureModeAtMost)
|
|
112
|
+
|
|
113
|
+
YG_ENUM_DECL(
|
|
114
|
+
YGNodeType,
|
|
115
|
+
YGNodeTypeDefault,
|
|
116
|
+
YGNodeTypeText)
|
|
117
|
+
|
|
118
|
+
YG_ENUM_DECL(
|
|
119
|
+
YGOverflow,
|
|
120
|
+
YGOverflowVisible,
|
|
121
|
+
YGOverflowHidden,
|
|
122
|
+
YGOverflowScroll)
|
|
123
|
+
|
|
124
|
+
YG_ENUM_DECL(
|
|
125
|
+
YGPositionType,
|
|
126
|
+
YGPositionTypeStatic,
|
|
127
|
+
YGPositionTypeRelative,
|
|
128
|
+
YGPositionTypeAbsolute)
|
|
129
|
+
|
|
130
|
+
YG_ENUM_DECL(
|
|
131
|
+
YGUnit,
|
|
132
|
+
YGUnitUndefined,
|
|
133
|
+
YGUnitPoint,
|
|
134
|
+
YGUnitPercent,
|
|
135
|
+
YGUnitAuto,
|
|
136
|
+
YGUnitMaxContent,
|
|
137
|
+
YGUnitFitContent,
|
|
138
|
+
YGUnitStretch)
|
|
139
|
+
|
|
140
|
+
YG_ENUM_DECL(
|
|
141
|
+
YGWrap,
|
|
142
|
+
YGWrapNoWrap,
|
|
143
|
+
YGWrapWrap,
|
|
144
|
+
YGWrapWrapReverse)
|
|
145
|
+
|
|
146
|
+
YG_EXTERN_C_END
|