update c# interop to use percentage

This commit is contained in:
Lukas Woehrl
2016-12-19 23:01:31 +01:00
parent cac8d3715b
commit e2c586490a
26 changed files with 919 additions and 756 deletions

View File

@@ -22,32 +22,32 @@ namespace Facebook.Yoga
{
YogaNode root = new YogaNode();
root.Wrap = YogaWrap.Wrap;
root.Width = 100f;
root.Height = 100f;
root.Width = 100.Px();
root.Height = 100.Px();
YogaNode root_child0 = new YogaNode();
root_child0.Width = 50f;
root_child0.Height = 10f;
root_child0.Width = 50.Px();
root_child0.Height = 10.Px();
root.Insert(0, root_child0);
YogaNode root_child1 = new YogaNode();
root_child1.Width = 50f;
root_child1.Height = 10f;
root_child1.Width = 50.Px();
root_child1.Height = 10.Px();
root.Insert(1, root_child1);
YogaNode root_child2 = new YogaNode();
root_child2.Width = 50f;
root_child2.Height = 10f;
root_child2.Width = 50.Px();
root_child2.Height = 10.Px();
root.Insert(2, root_child2);
YogaNode root_child3 = new YogaNode();
root_child3.Width = 50f;
root_child3.Height = 10f;
root_child3.Width = 50.Px();
root_child3.Height = 10.Px();
root.Insert(3, root_child3);
YogaNode root_child4 = new YogaNode();
root_child4.Width = 50f;
root_child4.Height = 10f;
root_child4.Width = 50.Px();
root_child4.Height = 10.Px();
root.Insert(4, root_child4);
root.StyleDirection = YogaDirection.LTR;
root.CalculateLayout();
@@ -122,32 +122,32 @@ namespace Facebook.Yoga
YogaNode root = new YogaNode();
root.AlignContent = YogaAlign.FlexEnd;
root.Wrap = YogaWrap.Wrap;
root.Width = 100f;
root.Height = 100f;
root.Width = 100.Px();
root.Height = 100.Px();
YogaNode root_child0 = new YogaNode();
root_child0.Width = 50f;
root_child0.Height = 10f;
root_child0.Width = 50.Px();
root_child0.Height = 10.Px();
root.Insert(0, root_child0);
YogaNode root_child1 = new YogaNode();
root_child1.Width = 50f;
root_child1.Height = 10f;
root_child1.Width = 50.Px();
root_child1.Height = 10.Px();
root.Insert(1, root_child1);
YogaNode root_child2 = new YogaNode();
root_child2.Width = 50f;
root_child2.Height = 10f;
root_child2.Width = 50.Px();
root_child2.Height = 10.Px();
root.Insert(2, root_child2);
YogaNode root_child3 = new YogaNode();
root_child3.Width = 50f;
root_child3.Height = 10f;
root_child3.Width = 50.Px();
root_child3.Height = 10.Px();
root.Insert(3, root_child3);
YogaNode root_child4 = new YogaNode();
root_child4.Width = 50f;
root_child4.Height = 10f;
root_child4.Width = 50.Px();
root_child4.Height = 10.Px();
root.Insert(4, root_child4);
root.StyleDirection = YogaDirection.LTR;
root.CalculateLayout();
@@ -222,32 +222,32 @@ namespace Facebook.Yoga
YogaNode root = new YogaNode();
root.AlignContent = YogaAlign.Center;
root.Wrap = YogaWrap.Wrap;
root.Width = 100f;
root.Height = 100f;
root.Width = 100.Px();
root.Height = 100.Px();
YogaNode root_child0 = new YogaNode();
root_child0.Width = 50f;
root_child0.Height = 10f;
root_child0.Width = 50.Px();
root_child0.Height = 10.Px();
root.Insert(0, root_child0);
YogaNode root_child1 = new YogaNode();
root_child1.Width = 50f;
root_child1.Height = 10f;
root_child1.Width = 50.Px();
root_child1.Height = 10.Px();
root.Insert(1, root_child1);
YogaNode root_child2 = new YogaNode();
root_child2.Width = 50f;
root_child2.Height = 10f;
root_child2.Width = 50.Px();
root_child2.Height = 10.Px();
root.Insert(2, root_child2);
YogaNode root_child3 = new YogaNode();
root_child3.Width = 50f;
root_child3.Height = 10f;
root_child3.Width = 50.Px();
root_child3.Height = 10.Px();
root.Insert(3, root_child3);
YogaNode root_child4 = new YogaNode();
root_child4.Width = 50f;
root_child4.Height = 10f;
root_child4.Width = 50.Px();
root_child4.Height = 10.Px();
root.Insert(4, root_child4);
root.StyleDirection = YogaDirection.LTR;
root.CalculateLayout();
@@ -322,27 +322,27 @@ namespace Facebook.Yoga
YogaNode root = new YogaNode();
root.AlignContent = YogaAlign.Stretch;
root.Wrap = YogaWrap.Wrap;
root.Width = 100f;
root.Height = 100f;
root.Width = 100.Px();
root.Height = 100.Px();
YogaNode root_child0 = new YogaNode();
root_child0.Width = 50f;
root_child0.Width = 50.Px();
root.Insert(0, root_child0);
YogaNode root_child1 = new YogaNode();
root_child1.Width = 50f;
root_child1.Width = 50.Px();
root.Insert(1, root_child1);
YogaNode root_child2 = new YogaNode();
root_child2.Width = 50f;
root_child2.Width = 50.Px();
root.Insert(2, root_child2);
YogaNode root_child3 = new YogaNode();
root_child3.Width = 50f;
root_child3.Width = 50.Px();
root.Insert(3, root_child3);
YogaNode root_child4 = new YogaNode();
root_child4.Width = 50f;
root_child4.Width = 50.Px();
root.Insert(4, root_child4);
root.StyleDirection = YogaDirection.LTR;
root.CalculateLayout();