21 if (position.HasValue) {
54 throw new Exception($
"Exception measuring widget of type {child.GetType().FullName}.", e);
58 desiredSize.X =
Size.X;
61 desiredSize.Y =
Size.Y;
71 if (widgetPosition.HasValue) {
74 ? child.ParentDesiredSize.X
77 ? child.ParentDesiredSize.Y
79 child.
Arrange(widgetPosition.Value, zero);
87 throw new Exception($
"Exception arranging widget of type {child.GetType().FullName}.", e);
static int Min(int x1, int x2)
static int Max(int x1, int x2)
static readonly Vector2 Zero
static Vector2 Max(Vector2 v, float f)