API ReferenceEditor
Layoutclass
Methods17
Showing 17 methods
public Editor.Layout AddColumn(int stretch = 0, bool reversed = False)
| Parameter | Type | Description |
|---|---|---|
| stretch = 0 | int | — |
| reversed = False | bool | — |
public virtual T AddLayout(T layout, int stretch = 0)
| Parameter | Type | Description |
|---|---|---|
| layout | T | — |
| stretch = 0 | int | — |
Returns:
T—public Editor.Layout AddRow(int stretch = 0, bool reversed = False)
| Parameter | Type | Description |
|---|---|---|
| stretch = 0 | int | — |
| reversed = False | bool | — |
public virtual void AddSpacingCell(float size)
Add a spacing item
| Parameter | Type | Description |
|---|---|---|
| size | float | — |
Returns:
void—public virtual void AddStretchCell(int stretch = 0)
Add a stretch item
| Parameter | Type | Description |
|---|---|---|
| stretch = 0 | int | — |
Returns:
void—public void Clear(bool deleteWidgets)
Remove all widgets from this layout, without deleting them outright.
| Parameter | Type | Description |
|---|---|---|
| deleteWidgets | bool | Also delete all the widgets. |
Returns:
void—public static Editor.Layout Column(bool reversed = False)
| Parameter | Type | Description |
|---|---|---|
| reversed = False | bool | — |
public static Editor.GridLayout Grid()
No results match this filter.
Properties7
Showing 7 properties
public Sandbox.TextFlag Editor.Layout.Alignment { get; set; }
An enabled layout adjusts dynamically to changes; a disabled layout acts as if it did not exist.
public bool Editor.Layout.Enabled { get; set; }
An enabled layout adjusts dynamically to changes; a disabled layout acts as if it did not exist.
Returns:
bool—public Sandbox.UI.Margin Editor.Layout.Margin { get; set; }
The amount of space to leave free around the outside of the layout
public Editor.SizeConstraint Editor.Layout.SizeConstraint { get; set; }
How the layout should resize the owning widget
public float Editor.Layout.Spacing { get; set; }
The amount of space between items
Returns:
float—No results match this filter.