Api Editor GridLayout
class

GridLayout

public class GridLayout : 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.

Constructors

GridLayout()

Properties

Name Type Description
HorizontalSpacing Single
VerticalSpacing Single

Methods

virtual T Add(T widget)
T AddCell(Int32 x, Int32 y, T widget, Int32 xSpan = 1, Int32 ySpan = 1, TextFlag alignment = 0)
virtual Layout Add(Layout layout)
virtual Layout Add(Layout layout, Int32 stretch)
Layout AddCell(Int32 x, Int32 y, Layout layout, Int32 xSpan = 1, Int32 ySpan = 1, TextFlag alignment = 0)
Void SetRowStretch(Single[] values)
Void SetColumnStretch(Single[] values)
Void SetMinimumRowHeight(Int32 row, Int32 height)
Void SetMinimumColumnWidth(Int32 column, Int32 width)
Rect GetCellRect(Int32 x, Int32 y)
Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.GridLayout