Class GridPanel
A panel that divides up available space between all of its children.
Implements
System.IComparable
Namespace: FlaxEngine.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
[ActorToolbox("GUI")]
public class GridPanel : ContainerControl, IComparable, IDrawable
Constructors
GridPanel()
GridPanel(Single)
Initializes a new instance of the GridPanel class.
Declaration
public GridPanel(float slotPadding)
Parameters
System.Single
slotPadding
The slot padding. |
Properties
ColumnFill
The cells heights in container width percentage (from left to right). Use negative values to set fixed heights for the cells.
Declaration
[EditorOrder(20)]
[Tooltip("The cells heights in container width percentage (from left to right). Use negative values to set fixed width for the cells.")]
public float[] ColumnFill { get; set; }
Property Value
System.Single[]
|
RowFill
The cells heights in container height percentage (from top to bottom). Use negative values to set fixed widths for the cells.
Declaration
[EditorOrder(10)]
[Tooltip("The cells heights in container height percentage (from top to bottom). Use negative values to set fixed height for the cells.")]
public float[] RowFill { get; set; }
Property Value
System.Single[]
|
SlotPadding
Gets or sets the padding applied to each item slot.
Declaration
[EditorOrder(0)]
[Tooltip("The padding margin applied to each item slot.")]
public Margin SlotPadding { get; set; }
Property Value
Margin
|
Methods
PerformLayoutBeforeChildren()
Perform layout for that container control before performing it for child controls.
Declaration
protected override void PerformLayoutBeforeChildren()