Layout() public abstract method

Determine the height and width of the box for the circumstances indicated by the transform. Also positions (and lays out) any contained boxes.
public abstract Layout ( LayoutInfo transform ) : void
transform LayoutInfo
return void
Ejemplo n.º 1
0
		private Box ChildSetup(Box box, LayoutInfo transform, int maxBoxWidth, int left, int top)
		{
			var childTransform = transform.WithMaxWidthOffsetBy(maxBoxWidth, Left, Top); // todo: test
			box.Layout(childTransform);
			box.Left = left;
			box.Top = top;
			return box;
		}
Ejemplo n.º 2
0
        private Box ChildSetup(Box box, LayoutInfo transform, int maxBoxWidth, int left, int top)
        {
            var childTransform = transform.WithMaxWidthOffsetBy(maxBoxWidth, Left, Top);             // todo: test

            box.Layout(childTransform);
            box.Left = left;
            box.Top  = top;
            return(box);
        }