Class Border
Border control that draws the border around the control edges (inner and outer sides).
Implements
System.IComparable
Namespace: FlaxEngine.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
[ActorToolbox("GUI")]
public class Border : ContainerControl, IComparable, IDrawable
Constructors
Border()
Properties
BorderColor
Gets or sets the color used to draw border lines.
Declaration
[EditorOrder(0)]
[Tooltip("The color used to draw border lines.")]
public Color BorderColor { get; set; }
Property Value
Color
|
BorderWidth
The border lines width.
Declaration
[EditorOrder(10)]
[Limit(0F, 3.40282347E+38F, 0.1F)]
[Tooltip("The border lines width.")]
public float BorderWidth { 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
DrawSelf()
Draws the control.
Declaration
public override void DrawSelf()