Flood.Tests.GUI.RenderBounds C# (CSharp) Method

RenderBounds() public method

public RenderBounds ( Control control, int &width, int &height ) : void
control Flood.GUI.Controls.Control
width int
height int
return void
        void RenderBounds(Control control, ref int width, ref int height)
        {
            if (control.Right > width)
                width = control.Right;

            if (control.Bottom > height)
                height = control.Bottom;
        }