Api Editor BoxLayout
class

BoxLayout

public sealed class BoxLayout : Layout

A widget layout. You can think of it as an invisible box of rows or columns, each one containing a widget, useful for automatic positioning and scaling.

Methods

virtual Void AddSpacingCell(Single size)

Add a spacing item

virtual Void AddStretchCell(Int32 stretch = 0)

Add a stretch item

Int32 GetCellStretch(Int32 index)
Void SetCellStretch(Int32 index, Int32 stretch)
Void SetCellStretch(Widget widget, Int32 stretch)
Void SetCellStretch(Layout layout, Int32 stretch)
virtual T Add(T widget, Int32 stretch = 0)
virtual Layout Add(Layout layout)
virtual Layout Add(Layout layout, Int32 stretch)
Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.BoxLayout