public void Layout(IGuiContext context, RectangleF rectangle) { foreach (var control in Controls) { GuiLayoutHelper.PlaceControl(context, control, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height); } }
public void Layout(IGuiContext context, Rectangle rectangle) { Width = rectangle.Width; Height = rectangle.Height; foreach (var control in Controls) { GuiLayoutHelper.PlaceControl(context, control, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height); } foreach (var window in Windows) { GuiLayoutHelper.PlaceWindow(context, window, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height); } IsLayoutRequired = false; }