Search Results for

    Show / Hide Table of Contents

    Class Sprite9SlicingBrush

    Implementation of IBrush for Sprite using 9-slicing.

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

    Constructors

    Sprite9SlicingBrush()

    Initializes a new instance of the Sprite9SlicingBrush class.

    Declaration
    public Sprite9SlicingBrush()

    Fields

    Border

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

    Declaration
    [ExpandGroups]
    [EditorOrder(3)]
    [Limit(0F, 1F, 1F)]
    [Tooltip("The sprite 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

    Sprite

    The sprite.

    Declaration
    [ExpandGroups]
    [EditorOrder(0)]
    [Tooltip("The sprite.")]
    public SpriteHandle Sprite
    Field Value
    SpriteHandle

    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