10 yield
return childWidget;
12 foreach (
Widget allChild
in containerWidget.AllChildren) {
13 yield
return allChild;
52 throw new Exception($
"Exception measuring widget of type {child.GetType().FullName}.", e);
63 throw new Exception($
"Exception arranging widget of type {child.GetType().FullName}.", e);
73 if (
float.IsPositiveInfinity(parentDesiredSize.
X)
77 if (
float.IsPositiveInfinity(parentDesiredSize.
Y)
83 zero2.X = parentDesiredSize.
X;
86 zero.X = c1.X + (vector.X - parentDesiredSize.
X) / 2f;
87 zero2.X = parentDesiredSize.
X;
90 zero.X = c2.X - parentDesiredSize.X - widget.
MarginRight;
91 zero2.X = parentDesiredSize.
X;
99 zero2.Y = parentDesiredSize.
Y;
102 zero.Y = c1.Y + (vector.Y - parentDesiredSize.
Y) / 2f;
103 zero2.Y = parentDesiredSize.
Y;
106 zero.Y = c2.Y - parentDesiredSize.Y - widget.
MarginBottom;
107 zero2.Y = parentDesiredSize.
Y;
static int Max(int x1, int x2)
static readonly Vector2 Zero
static Vector2 Max(Vector2 v, float f)