Class SolidColorBrush
Implementation of IBrush for single color fill.
Inheritance
System.Object
SolidColorBrush
Namespace: FlaxEngine.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class SolidColorBrush : Object, IBrush
Constructors
SolidColorBrush()
SolidColorBrush(Color)
Initializes a new instance of the SolidColorBrush struct.
Declaration
public SolidColorBrush(Color color)
Parameters
Color
color
The color. |
Fields
Color
The brush color.
Declaration
[ExpandGroups]
[Tooltip("The brush color.")]
public Color Color
Field Value
Color
|
Properties
Size
Gets the size of the image brush in pixels (if relevant).
Declaration
public Float2 Size { get; }
Property Value
Float2
|
Implements
Methods
Draw(Rectangle, Color)
Draws the specified image using Render2D graphics backend.
Declaration
public void Draw(Rectangle rect, Color color)
Parameters
Rectangle
rect
The draw area rectangle. |
Color
color
The color. |