Layoutclass

object→QObject→Layout
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public abstract class Editor.Layout : Editor.QObject

Methods17

Showing 17 methods

public Editor.Layout AddColumn(int stretch = 0, bool reversed = False)PUBLIC

ParameterTypeDescription
stretch = 0int—
reversed = Falsebool—
Returns:Layout—

public Editor.Layout AddFlow(int stretch = 0)PUBLIC

ParameterTypeDescription
stretch = 0int—
Returns:Layout—

public virtual T AddLayout(T layout, int stretch = 0)PUBLICVIRTUAL

ParameterTypeDescription
layoutT—
stretch = 0int—
Returns:T—

public Editor.Layout AddRow(int stretch = 0, bool reversed = False)PUBLIC

ParameterTypeDescription
stretch = 0int—
reversed = Falsebool—
Returns:Layout—

public virtual void AddSpacingCell(float size)PUBLICVIRTUAL

Add a spacing item

ParameterTypeDescription
sizefloat—
Returns:void—

public virtual void AddStretchCell(int stretch = 0)PUBLICVIRTUAL

Add a stretch item

ParameterTypeDescription
stretch = 0int—
Returns:void—

public void Clear(bool deleteWidgets)PUBLIC

Remove all widgets from this layout, without deleting them outright.

ParameterTypeDescription
deleteWidgetsboolAlso delete all the widgets.
Returns:void—

public static Editor.Layout Column(bool reversed = False)PUBLICSTATIC

ParameterTypeDescription
reversed = Falsebool—
Returns:Layout—

public static Editor.Layout Flow()PUBLICSTATIC

Returns:Layout—

public static Editor.Layout Row(bool reversed = False)PUBLICSTATIC

ParameterTypeDescription
reversed = Falsebool—
Returns:Layout—

Properties7

Showing 7 properties

public Sandbox.TextFlag Editor.Layout.Alignment { get; set; }PUBLICGETSET

An enabled layout adjusts dynamically to changes; a disabled layout acts as if it did not exist.

Returns:TextFlag—

public bool Editor.Layout.Enabled { get; set; }PUBLICGETSET

An enabled layout adjusts dynamically to changes; a disabled layout acts as if it did not exist.

Returns:bool—

public Sandbox.Rect Editor.Layout.InnerRect { get; set; }PUBLICGETSET

The rect of this layout excluding margins

Returns:Rect—

public Sandbox.UI.Margin Editor.Layout.Margin { get; set; }PUBLICGETSET

The amount of space to leave free around the outside of the layout

Returns:Margin—

public Sandbox.Rect Editor.Layout.OuterRect { get; set; }PUBLICGETSET

The rect of this layout including margins

Returns:Rect—

public float Editor.Layout.Spacing { get; set; }PUBLICGETSET

The amount of space between items

Returns:float—

On this page