Class TilesPanel
Panel that arranges child controls like tiles.
Implements
System.IComparable
Namespace: FlaxEngine.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
[ActorToolbox("GUI")]
public class TilesPanel : ContainerControl, IComparable, IDrawable
Constructors
TilesPanel()
TilesPanel(Single)
Initializes a new instance of the TilesPanel class.
Declaration
public TilesPanel(float tileMargin)
Parameters
System.Single
tileMargin
The tile margin. |
Properties
AutoResize
Gets or sets a value indicating whether perform automatic resize after tiles arrange.
Declaration
[EditorOrder(10)]
[Tooltip("If checked, the automatic control resize will be performed after tiles arrange,")]
public bool AutoResize { get; set; }
Property Value
System.Boolean
|
TileMargin
Gets or sets the margin applied to each tile.
Declaration
[EditorOrder(0)]
[Tooltip("The margin applied to each tile.")]
public Margin TileMargin { get; set; }
Property Value
Margin
|
TileSize
Gets or sets the size of the tile.
Declaration
[EditorOrder(0)]
[Limit(0.01F, 3.40282347E+38F, 1F)]
[Tooltip("The size of the single tile.")]
public Float2 TileSize { get; set; }
Property Value
Float2
|
Methods
PerformLayoutBeforeChildren()
Perform layout for that container control before performing it for child controls.
Declaration
protected override void PerformLayoutBeforeChildren()