1010
1111namespace Facebook . Yoga
1212{
13- #if WINDOWS_UWP_ARM
14- using YogaValueType = IntPtr ;
15- #else
16- using YogaValueType = YogaValue ;
17- #endif
18-
1913 internal static class Native
2014 {
2115#if ( UNITY_IOS && ! UNITY_EDITOR ) || __IOS__
@@ -74,6 +68,14 @@ public static extern void YGConfigSetUseWebDefaults(
7468 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
7569 public static extern bool YGConfigGetUseWebDefaults ( YGConfigHandle config ) ;
7670
71+ [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
72+ public static extern void YGConfigSetUseLegacyStretchBehaviour (
73+ YGConfigHandle config ,
74+ bool useLegacyStretchBehavior ) ;
75+
76+ [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
77+ public static extern bool YGConfigGetUseLegacyStretchBehaviour ( YGConfigHandle config ) ;
78+
7779 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
7880 public static extern void YGConfigSetPointScaleFactor (
7981 YGConfigHandle config ,
@@ -226,7 +228,7 @@ public static extern void YGNodeSetHasNewLayout(
226228 public static extern void YGNodeStyleSetFlexBasisAuto ( YGNodeHandle node ) ;
227229
228230 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
229- public static extern YogaValueType YGNodeStyleGetFlexBasis ( YGNodeHandle node ) ;
231+ public static extern YogaValue YGNodeStyleGetFlexBasis ( YGNodeHandle node ) ;
230232
231233 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
232234 public static extern void YGNodeStyleSetWidth ( YGNodeHandle node , float width ) ;
@@ -238,7 +240,7 @@ public static extern void YGNodeSetHasNewLayout(
238240 public static extern void YGNodeStyleSetWidthAuto ( YGNodeHandle node ) ;
239241
240242 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
241- public static extern YogaValueType YGNodeStyleGetWidth ( YGNodeHandle node ) ;
243+ public static extern YogaValue YGNodeStyleGetWidth ( YGNodeHandle node ) ;
242244
243245 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
244246 public static extern void YGNodeStyleSetHeight ( YGNodeHandle node , float height ) ;
@@ -250,7 +252,7 @@ public static extern void YGNodeSetHasNewLayout(
250252 public static extern void YGNodeStyleSetHeightAuto ( YGNodeHandle node ) ;
251253
252254 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
253- public static extern YogaValueType YGNodeStyleGetHeight ( YGNodeHandle node ) ;
255+ public static extern YogaValue YGNodeStyleGetHeight ( YGNodeHandle node ) ;
254256
255257 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
256258 public static extern void YGNodeStyleSetMinWidth ( YGNodeHandle node , float minWidth ) ;
@@ -259,7 +261,7 @@ public static extern void YGNodeSetHasNewLayout(
259261 public static extern void YGNodeStyleSetMinWidthPercent ( YGNodeHandle node , float minWidth ) ;
260262
261263 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
262- public static extern YogaValueType YGNodeStyleGetMinWidth ( YGNodeHandle node ) ;
264+ public static extern YogaValue YGNodeStyleGetMinWidth ( YGNodeHandle node ) ;
263265
264266 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
265267 public static extern void YGNodeStyleSetMinHeight ( YGNodeHandle node , float minHeight ) ;
@@ -268,7 +270,7 @@ public static extern void YGNodeSetHasNewLayout(
268270 public static extern void YGNodeStyleSetMinHeightPercent ( YGNodeHandle node , float minHeight ) ;
269271
270272 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
271- public static extern YogaValueType YGNodeStyleGetMinHeight ( YGNodeHandle node ) ;
273+ public static extern YogaValue YGNodeStyleGetMinHeight ( YGNodeHandle node ) ;
272274
273275 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
274276 public static extern void YGNodeStyleSetMaxWidth ( YGNodeHandle node , float maxWidth ) ;
@@ -277,7 +279,7 @@ public static extern void YGNodeSetHasNewLayout(
277279 public static extern void YGNodeStyleSetMaxWidthPercent ( YGNodeHandle node , float maxWidth ) ;
278280
279281 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
280- public static extern YogaValueType YGNodeStyleGetMaxWidth ( YGNodeHandle node ) ;
282+ public static extern YogaValue YGNodeStyleGetMaxWidth ( YGNodeHandle node ) ;
281283
282284 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
283285 public static extern void YGNodeStyleSetMaxHeight ( YGNodeHandle node , float maxHeight ) ;
@@ -286,7 +288,7 @@ public static extern void YGNodeSetHasNewLayout(
286288 public static extern void YGNodeStyleSetMaxHeightPercent ( YGNodeHandle node , float maxHeight ) ;
287289
288290 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
289- public static extern YogaValueType YGNodeStyleGetMaxHeight ( YGNodeHandle node ) ;
291+ public static extern YogaValue YGNodeStyleGetMaxHeight ( YGNodeHandle node ) ;
290292
291293 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
292294 public static extern void YGNodeStyleSetAspectRatio ( YGNodeHandle node , float aspectRatio ) ;
@@ -305,7 +307,7 @@ public static extern void YGNodeSetHasNewLayout(
305307 public static extern void YGNodeStyleSetPositionPercent ( YGNodeHandle node , YogaEdge edge , float position ) ;
306308
307309 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
308- public static extern YogaValueType YGNodeStyleGetPosition ( YGNodeHandle node , YogaEdge edge ) ;
310+ public static extern YogaValue YGNodeStyleGetPosition ( YGNodeHandle node , YogaEdge edge ) ;
309311
310312 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
311313 public static extern void YGNodeStyleSetMargin ( YGNodeHandle node , YogaEdge edge , float margin ) ;
@@ -317,7 +319,7 @@ public static extern void YGNodeSetHasNewLayout(
317319 public static extern void YGNodeStyleSetMarginAuto ( YGNodeHandle node , YogaEdge edge ) ;
318320
319321 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
320- public static extern YogaValueType YGNodeStyleGetMargin ( YGNodeHandle node , YogaEdge edge ) ;
322+ public static extern YogaValue YGNodeStyleGetMargin ( YGNodeHandle node , YogaEdge edge ) ;
321323
322324 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
323325 public static extern void YGNodeStyleSetPadding ( YGNodeHandle node , YogaEdge edge , float padding ) ;
@@ -326,7 +328,7 @@ public static extern void YGNodeSetHasNewLayout(
326328 public static extern void YGNodeStyleSetPaddingPercent ( YGNodeHandle node , YogaEdge edge , float padding ) ;
327329
328330 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
329- public static extern YogaValueType YGNodeStyleGetPadding ( YGNodeHandle node , YogaEdge edge ) ;
331+ public static extern YogaValue YGNodeStyleGetPadding ( YGNodeHandle node , YogaEdge edge ) ;
330332
331333 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
332334 public static extern void YGNodeStyleSetBorder ( YGNodeHandle node , YogaEdge edge , float border ) ;
0 commit comments