Search Results for

    Show / Hide Table of Contents

    Class SolidColorBrush

    Implementation of IBrush for single color fill.

    Inheritance
    System.Object
    SolidColorBrush
    Implements
    IBrush
    Namespace: FlaxEngine.GUI
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    public sealed class SolidColorBrush : Object, IBrush

    Constructors

    SolidColorBrush()

    Initializes a new instance of the SolidColorBrush class.

    Declaration
    public 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
    IBrush.Size

    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.

    Implements
    IBrush.Draw(Rectangle, Color)

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)

    See Also

    IBrush
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat