Class PanelWithMargins
Helper control class for other panels.
Implements
Namespace: FlaxEngine.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
public abstract class PanelWithMargins : ContainerControl, IComparable, IDrawable
Constructors
PanelWithMargins()
Fields
_autoSize
The auto size flag.
Declaration
protected bool _autoSize
Field Value
System.Boolean
|
_margin
_offset
_spacing
The space between the items.
Declaration
protected float _spacing
Field Value
System.Single
|
Properties
AutoSize
Gets or sets the value indicating whenever the panel size will be based on a children dimensions.
Declaration
[EditorOrder(30)]
[Tooltip("If checked, the panel size will be based on a children dimensions.")]
public bool AutoSize { get; set; }
Property Value
System.Boolean
|
ControlChildSize
Gets or sets the value indicating whenever the panel can resize children controls (eg. auto-fit width/height).
Declaration
[EditorOrder(35)]
[Tooltip("If checked, the panel can resize children controls (eg. auto-fit width/height).")]
public bool ControlChildSize { get; set; }
Property Value
System.Boolean
|
Margin
Gets or sets the panel area margin.
Declaration
[EditorOrder(40)]
[Tooltip("The panel area margin.")]
public Margin Margin { get; set; }
Property Value
Margin
|
Offset
Gets or sets the child controls offset (additive).
Declaration
[EditorOrder(20)]
[Tooltip("The child controls offset (additive).")]
public Float2 Offset { get; set; }
Property Value
Float2
|
Spacing
Gets or sets the child controls spacing.
Declaration
[EditorOrder(10)]
[Tooltip("The child controls spacing (the space between controls).")]
public float Spacing { get; set; }
Property Value
System.Single
|
Methods
ContainsPoint(ref Float2, Boolean)
Checks if this control contains given point in local Control Space.
Declaration
public override bool ContainsPoint(ref Float2 location, bool precise = false)
Parameters
Float2
location
Point location in Control Space to check |
System.Boolean
precise
True if perform precise intersection test against the control content (eg. with hit mask or transparency threshold). Otherwise, only simple bounds-check will be performed. |
Returns
System.Boolean
True if point is inside control's area, otherwise false. |
Overrides
OnChildResized(Control)
Called when child control gets resized.
Declaration
public override void OnChildResized(Control control)
Parameters
Control
control
The resized control. |