@@ -177,18 +177,19 @@ float YGNodeStyleGetFlexShrink(const YGNodeConstRef nodeRef) {
177177
178178void YGNodeStyleSetFlexBasis (const YGNodeRef node, const float flexBasis) {
179179 updateStyle<&Style::flexBasis, &Style::setFlexBasis>(
180- node, value ::points (flexBasis));
180+ node, StyleLength ::points (flexBasis));
181181}
182182
183183void YGNodeStyleSetFlexBasisPercent (
184184 const YGNodeRef node,
185185 const float flexBasisPercent) {
186186 updateStyle<&Style::flexBasis, &Style::setFlexBasis>(
187- node, value ::percent (flexBasisPercent));
187+ node, StyleLength ::percent (flexBasisPercent));
188188}
189189
190190void YGNodeStyleSetFlexBasisAuto (const YGNodeRef node) {
191- updateStyle<&Style::flexBasis, &Style::setFlexBasis>(node, value::ofAuto ());
191+ updateStyle<&Style::flexBasis, &Style::setFlexBasis>(
192+ node, StyleLength::ofAuto ());
192193}
193194
194195YGValue YGNodeStyleGetFlexBasis (const YGNodeConstRef node) {
@@ -197,17 +198,17 @@ YGValue YGNodeStyleGetFlexBasis(const YGNodeConstRef node) {
197198
198199void YGNodeStyleSetPosition (YGNodeRef node, YGEdge edge, float points) {
199200 updateStyle<&Style::position, &Style::setPosition>(
200- node, scopedEnum (edge), value ::points (points));
201+ node, scopedEnum (edge), StyleLength ::points (points));
201202}
202203
203204void YGNodeStyleSetPositionPercent (YGNodeRef node, YGEdge edge, float percent) {
204205 updateStyle<&Style::position, &Style::setPosition>(
205- node, scopedEnum (edge), value ::percent (percent));
206+ node, scopedEnum (edge), StyleLength ::percent (percent));
206207}
207208
208209void YGNodeStyleSetPositionAuto (YGNodeRef node, YGEdge edge) {
209210 updateStyle<&Style::position, &Style::setPosition>(
210- node, scopedEnum (edge), value ::ofAuto ());
211+ node, scopedEnum (edge), StyleLength ::ofAuto ());
211212}
212213
213214YGValue YGNodeStyleGetPosition (YGNodeConstRef node, YGEdge edge) {
@@ -216,17 +217,17 @@ YGValue YGNodeStyleGetPosition(YGNodeConstRef node, YGEdge edge) {
216217
217218void YGNodeStyleSetMargin (YGNodeRef node, YGEdge edge, float points) {
218219 updateStyle<&Style::margin, &Style::setMargin>(
219- node, scopedEnum (edge), value ::points (points));
220+ node, scopedEnum (edge), StyleLength ::points (points));
220221}
221222
222223void YGNodeStyleSetMarginPercent (YGNodeRef node, YGEdge edge, float percent) {
223224 updateStyle<&Style::margin, &Style::setMargin>(
224- node, scopedEnum (edge), value ::percent (percent));
225+ node, scopedEnum (edge), StyleLength ::percent (percent));
225226}
226227
227228void YGNodeStyleSetMarginAuto (YGNodeRef node, YGEdge edge) {
228229 updateStyle<&Style::margin, &Style::setMargin>(
229- node, scopedEnum (edge), value ::ofAuto ());
230+ node, scopedEnum (edge), StyleLength ::ofAuto ());
230231}
231232
232233YGValue YGNodeStyleGetMargin (YGNodeConstRef node, YGEdge edge) {
@@ -235,12 +236,12 @@ YGValue YGNodeStyleGetMargin(YGNodeConstRef node, YGEdge edge) {
235236
236237void YGNodeStyleSetPadding (YGNodeRef node, YGEdge edge, float points) {
237238 updateStyle<&Style::padding, &Style::setPadding>(
238- node, scopedEnum (edge), value ::points (points));
239+ node, scopedEnum (edge), StyleLength ::points (points));
239240}
240241
241242void YGNodeStyleSetPaddingPercent (YGNodeRef node, YGEdge edge, float percent) {
242243 updateStyle<&Style::padding, &Style::setPadding>(
243- node, scopedEnum (edge), value ::percent (percent));
244+ node, scopedEnum (edge), StyleLength ::percent (percent));
244245}
245246
246247YGValue YGNodeStyleGetPadding (YGNodeConstRef node, YGEdge edge) {
@@ -252,7 +253,7 @@ void YGNodeStyleSetBorder(
252253 const YGEdge edge,
253254 const float border) {
254255 updateStyle<&Style::border, &Style::setBorder>(
255- node, scopedEnum (edge), value ::points (border));
256+ node, scopedEnum (edge), StyleLength ::points (border));
256257}
257258
258259float YGNodeStyleGetBorder (const YGNodeConstRef node, const YGEdge edge) {
@@ -269,12 +270,12 @@ void YGNodeStyleSetGap(
269270 const YGGutter gutter,
270271 const float gapLength) {
271272 updateStyle<&Style::gap, &Style::setGap>(
272- node, scopedEnum (gutter), value ::points (gapLength));
273+ node, scopedEnum (gutter), StyleLength ::points (gapLength));
273274}
274275
275276void YGNodeStyleSetGapPercent (YGNodeRef node, YGGutter gutter, float percent) {
276277 updateStyle<&Style::gap, &Style::setGap>(
277- node, scopedEnum (gutter), value ::percent (percent));
278+ node, scopedEnum (gutter), StyleLength ::percent (percent));
278279}
279280
280281float YGNodeStyleGetGap (const YGNodeConstRef node, const YGGutter gutter) {
@@ -307,17 +308,17 @@ YGBoxSizing YGNodeStyleGetBoxSizing(const YGNodeConstRef node) {
307308
308309void YGNodeStyleSetWidth (YGNodeRef node, float points) {
309310 updateStyle<&Style::dimension, &Style::setDimension>(
310- node, Dimension::Width, value ::points (points));
311+ node, Dimension::Width, StyleLength ::points (points));
311312}
312313
313314void YGNodeStyleSetWidthPercent (YGNodeRef node, float percent) {
314315 updateStyle<&Style::dimension, &Style::setDimension>(
315- node, Dimension::Width, value ::percent (percent));
316+ node, Dimension::Width, StyleLength ::percent (percent));
316317}
317318
318319void YGNodeStyleSetWidthAuto (YGNodeRef node) {
319320 updateStyle<&Style::dimension, &Style::setDimension>(
320- node, Dimension::Width, value ::ofAuto ());
321+ node, Dimension::Width, StyleLength ::ofAuto ());
321322}
322323
323324YGValue YGNodeStyleGetWidth (YGNodeConstRef node) {
@@ -326,17 +327,17 @@ YGValue YGNodeStyleGetWidth(YGNodeConstRef node) {
326327
327328void YGNodeStyleSetHeight (YGNodeRef node, float points) {
328329 updateStyle<&Style::dimension, &Style::setDimension>(
329- node, Dimension::Height, value ::points (points));
330+ node, Dimension::Height, StyleLength ::points (points));
330331}
331332
332333void YGNodeStyleSetHeightPercent (YGNodeRef node, float percent) {
333334 updateStyle<&Style::dimension, &Style::setDimension>(
334- node, Dimension::Height, value ::percent (percent));
335+ node, Dimension::Height, StyleLength ::percent (percent));
335336}
336337
337338void YGNodeStyleSetHeightAuto (YGNodeRef node) {
338339 updateStyle<&Style::dimension, &Style::setDimension>(
339- node, Dimension::Height, value ::ofAuto ());
340+ node, Dimension::Height, StyleLength ::ofAuto ());
340341}
341342
342343YGValue YGNodeStyleGetHeight (YGNodeConstRef node) {
@@ -345,12 +346,12 @@ YGValue YGNodeStyleGetHeight(YGNodeConstRef node) {
345346
346347void YGNodeStyleSetMinWidth (const YGNodeRef node, const float minWidth) {
347348 updateStyle<&Style::minDimension, &Style::setMinDimension>(
348- node, Dimension::Width, value ::points (minWidth));
349+ node, Dimension::Width, StyleLength ::points (minWidth));
349350}
350351
351352void YGNodeStyleSetMinWidthPercent (const YGNodeRef node, const float minWidth) {
352353 updateStyle<&Style::minDimension, &Style::setMinDimension>(
353- node, Dimension::Width, value ::percent (minWidth));
354+ node, Dimension::Width, StyleLength ::percent (minWidth));
354355}
355356
356357YGValue YGNodeStyleGetMinWidth (const YGNodeConstRef node) {
@@ -359,14 +360,14 @@ YGValue YGNodeStyleGetMinWidth(const YGNodeConstRef node) {
359360
360361void YGNodeStyleSetMinHeight (const YGNodeRef node, const float minHeight) {
361362 updateStyle<&Style::minDimension, &Style::setMinDimension>(
362- node, Dimension::Height, value ::points (minHeight));
363+ node, Dimension::Height, StyleLength ::points (minHeight));
363364}
364365
365366void YGNodeStyleSetMinHeightPercent (
366367 const YGNodeRef node,
367368 const float minHeight) {
368369 updateStyle<&Style::minDimension, &Style::setMinDimension>(
369- node, Dimension::Height, value ::percent (minHeight));
370+ node, Dimension::Height, StyleLength ::percent (minHeight));
370371}
371372
372373YGValue YGNodeStyleGetMinHeight (const YGNodeConstRef node) {
@@ -375,12 +376,12 @@ YGValue YGNodeStyleGetMinHeight(const YGNodeConstRef node) {
375376
376377void YGNodeStyleSetMaxWidth (const YGNodeRef node, const float maxWidth) {
377378 updateStyle<&Style::maxDimension, &Style::setMaxDimension>(
378- node, Dimension::Width, value ::points (maxWidth));
379+ node, Dimension::Width, StyleLength ::points (maxWidth));
379380}
380381
381382void YGNodeStyleSetMaxWidthPercent (const YGNodeRef node, const float maxWidth) {
382383 updateStyle<&Style::maxDimension, &Style::setMaxDimension>(
383- node, Dimension::Width, value ::percent (maxWidth));
384+ node, Dimension::Width, StyleLength ::percent (maxWidth));
384385}
385386
386387YGValue YGNodeStyleGetMaxWidth (const YGNodeConstRef node) {
@@ -389,14 +390,14 @@ YGValue YGNodeStyleGetMaxWidth(const YGNodeConstRef node) {
389390
390391void YGNodeStyleSetMaxHeight (const YGNodeRef node, const float maxHeight) {
391392 updateStyle<&Style::maxDimension, &Style::setMaxDimension>(
392- node, Dimension::Height, value ::points (maxHeight));
393+ node, Dimension::Height, StyleLength ::points (maxHeight));
393394}
394395
395396void YGNodeStyleSetMaxHeightPercent (
396397 const YGNodeRef node,
397398 const float maxHeight) {
398399 updateStyle<&Style::maxDimension, &Style::setMaxDimension>(
399- node, Dimension::Height, value ::percent (maxHeight));
400+ node, Dimension::Height, StyleLength ::percent (maxHeight));
400401}
401402
402403YGValue YGNodeStyleGetMaxHeight (const YGNodeConstRef node) {
0 commit comments