GridLayoutclass

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.

objectLayoutGridLayout
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public class Editor.GridLayout : Editor.Layout

Constructors1

Showing 1 constructors

Methods10

Showing 10 methods

public Sandbox.Rect GetCellRect(int x, int y)PUBLIC

ParameterTypeDescription
xint
yint
Returns:Rect

public void SetColumnStretch(float[] values)PUBLIC

ParameterTypeDescription
valuesfloat[]
Returns:void

public void SetMinimumColumnWidth(int column, int width)PUBLIC

ParameterTypeDescription
columnint
widthint
Returns:void

public void SetMinimumRowHeight(int row, int height)PUBLIC

ParameterTypeDescription
rowint
heightint
Returns:void

public void SetRowStretch(float[] values)PUBLIC

ParameterTypeDescription
valuesfloat[]
Returns:void

Properties2

Showing 2 properties

public float Editor.GridLayout.HorizontalSpacing { get; set; }PUBLICGETSET

Returns:float

public float Editor.GridLayout.VerticalSpacing { get; set; }PUBLICGETSET

Returns:float

On this page