Search Results for

    Show / Hide Table of Contents

    Class TextureBrush

    Implementation of IBrush for Texture.

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

    Constructors

    TextureBrush()

    Initializes a new instance of the TextureBrush class.

    Declaration
    public TextureBrush()

    TextureBrush(Texture)

    Initializes a new instance of the TextureBrush struct.

    Declaration
    public TextureBrush(Texture texture)
    Parameters
    Texture texture

    The texture.

    Fields

    Filter

    The texture sampling filter mode.

    Declaration
    [ExpandGroups]
    [EditorOrder(1)]
    [Tooltip("The texture sampling filter mode.")]
    public BrushFilter Filter
    Field Value
    BrushFilter

    Texture

    The texture.

    Declaration
    [ExpandGroups]
    [EditorOrder(0)]
    [Tooltip("The texture asset.")]
    public Texture Texture
    Field Value
    Texture

    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