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__
@@ -234,7 +228,7 @@ public static extern void YGNodeSetHasNewLayout(
234228 public static extern void YGNodeStyleSetFlexBasisAuto ( YGNodeHandle node ) ;
235229
236230 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
237- public static extern YogaValueType YGNodeStyleGetFlexBasis ( YGNodeHandle node ) ;
231+ public static extern YogaValue YGNodeStyleGetFlexBasis ( YGNodeHandle node ) ;
238232
239233 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
240234 public static extern void YGNodeStyleSetWidth ( YGNodeHandle node , float width ) ;
@@ -246,7 +240,7 @@ public static extern void YGNodeSetHasNewLayout(
246240 public static extern void YGNodeStyleSetWidthAuto ( YGNodeHandle node ) ;
247241
248242 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
249- public static extern YogaValueType YGNodeStyleGetWidth ( YGNodeHandle node ) ;
243+ public static extern YogaValue YGNodeStyleGetWidth ( YGNodeHandle node ) ;
250244
251245 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
252246 public static extern void YGNodeStyleSetHeight ( YGNodeHandle node , float height ) ;
@@ -258,7 +252,7 @@ public static extern void YGNodeSetHasNewLayout(
258252 public static extern void YGNodeStyleSetHeightAuto ( YGNodeHandle node ) ;
259253
260254 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
261- public static extern YogaValueType YGNodeStyleGetHeight ( YGNodeHandle node ) ;
255+ public static extern YogaValue YGNodeStyleGetHeight ( YGNodeHandle node ) ;
262256
263257 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
264258 public static extern void YGNodeStyleSetMinWidth ( YGNodeHandle node , float minWidth ) ;
@@ -267,7 +261,7 @@ public static extern void YGNodeSetHasNewLayout(
267261 public static extern void YGNodeStyleSetMinWidthPercent ( YGNodeHandle node , float minWidth ) ;
268262
269263 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
270- public static extern YogaValueType YGNodeStyleGetMinWidth ( YGNodeHandle node ) ;
264+ public static extern YogaValue YGNodeStyleGetMinWidth ( YGNodeHandle node ) ;
271265
272266 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
273267 public static extern void YGNodeStyleSetMinHeight ( YGNodeHandle node , float minHeight ) ;
@@ -276,7 +270,7 @@ public static extern void YGNodeSetHasNewLayout(
276270 public static extern void YGNodeStyleSetMinHeightPercent ( YGNodeHandle node , float minHeight ) ;
277271
278272 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
279- public static extern YogaValueType YGNodeStyleGetMinHeight ( YGNodeHandle node ) ;
273+ public static extern YogaValue YGNodeStyleGetMinHeight ( YGNodeHandle node ) ;
280274
281275 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
282276 public static extern void YGNodeStyleSetMaxWidth ( YGNodeHandle node , float maxWidth ) ;
@@ -285,7 +279,7 @@ public static extern void YGNodeSetHasNewLayout(
285279 public static extern void YGNodeStyleSetMaxWidthPercent ( YGNodeHandle node , float maxWidth ) ;
286280
287281 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
288- public static extern YogaValueType YGNodeStyleGetMaxWidth ( YGNodeHandle node ) ;
282+ public static extern YogaValue YGNodeStyleGetMaxWidth ( YGNodeHandle node ) ;
289283
290284 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
291285 public static extern void YGNodeStyleSetMaxHeight ( YGNodeHandle node , float maxHeight ) ;
@@ -294,7 +288,7 @@ public static extern void YGNodeSetHasNewLayout(
294288 public static extern void YGNodeStyleSetMaxHeightPercent ( YGNodeHandle node , float maxHeight ) ;
295289
296290 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
297- public static extern YogaValueType YGNodeStyleGetMaxHeight ( YGNodeHandle node ) ;
291+ public static extern YogaValue YGNodeStyleGetMaxHeight ( YGNodeHandle node ) ;
298292
299293 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
300294 public static extern void YGNodeStyleSetAspectRatio ( YGNodeHandle node , float aspectRatio ) ;
@@ -313,7 +307,7 @@ public static extern void YGNodeSetHasNewLayout(
313307 public static extern void YGNodeStyleSetPositionPercent ( YGNodeHandle node , YogaEdge edge , float position ) ;
314308
315309 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
316- public static extern YogaValueType YGNodeStyleGetPosition ( YGNodeHandle node , YogaEdge edge ) ;
310+ public static extern YogaValue YGNodeStyleGetPosition ( YGNodeHandle node , YogaEdge edge ) ;
317311
318312 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
319313 public static extern void YGNodeStyleSetMargin ( YGNodeHandle node , YogaEdge edge , float margin ) ;
@@ -325,7 +319,7 @@ public static extern void YGNodeSetHasNewLayout(
325319 public static extern void YGNodeStyleSetMarginAuto ( YGNodeHandle node , YogaEdge edge ) ;
326320
327321 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
328- public static extern YogaValueType YGNodeStyleGetMargin ( YGNodeHandle node , YogaEdge edge ) ;
322+ public static extern YogaValue YGNodeStyleGetMargin ( YGNodeHandle node , YogaEdge edge ) ;
329323
330324 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
331325 public static extern void YGNodeStyleSetPadding ( YGNodeHandle node , YogaEdge edge , float padding ) ;
@@ -334,7 +328,7 @@ public static extern void YGNodeSetHasNewLayout(
334328 public static extern void YGNodeStyleSetPaddingPercent ( YGNodeHandle node , YogaEdge edge , float padding ) ;
335329
336330 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
337- public static extern YogaValueType YGNodeStyleGetPadding ( YGNodeHandle node , YogaEdge edge ) ;
331+ public static extern YogaValue YGNodeStyleGetPadding ( YGNodeHandle node , YogaEdge edge ) ;
338332
339333 [ DllImport ( DllName , ExactSpelling = true , CallingConvention = CallingConvention . Cdecl ) ]
340334 public static extern void YGNodeStyleSetBorder ( YGNodeHandle node , YogaEdge edge , float border ) ;
0 commit comments