Class Texture9SlicingBrush
Inheritance
System.Object
Texture9SlicingBrush
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
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. |