Search Results for

    Show / Hide Table of Contents

    Class Texture9SlicingBrush

    Implementation of IBrush for Texture using 9-slicing.

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

    Constructors

    Texture9SlicingBrush()

    Initializes a new instance of the Texture9SlicingBrush class.

    Declaration
    public Texture9SlicingBrush()

    Texture9SlicingBrush(Texture)

    Initializes a new instance of the Texture9SlicingBrush struct.

    Declaration
    public Texture9SlicingBrush(Texture texture)
    Parameters
    Texture texture

    The texture.

    Fields

    Border

    The texture borders (in texture space, range 0-1).

    Declaration
    [ExpandGroups]
    [EditorOrder(3)]
    [Limit(0F, 1F, 1F)]
    [Tooltip("The texture borders (in texture space, range 0-1).")]
    public Margin Border
    Field Value
    Margin

    BorderSize

    The border size.

    Declaration
    [ExpandGroups]
    [EditorOrder(2)]
    [Limit(0F, 3.40282347E+38F, 1F)]
    [Tooltip("The border size.")]
    public float BorderSize
    Field Value
    System.Single

    Filter

    The texture sampling filter mode.

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

    ShowBorders

    Displays borders (editor only).

    Declaration
    [NoSerialize]
    [EditorOrder(4)]
    [Tooltip("Displays borders (editor only).")]
    public bool ShowBorders
    Field Value
    System.Boolean

    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