Class Texture9SlicingBrush
Inheritance
System.Object
Texture9SlicingBrush
Namespace: FlaxEngine.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class Texture9SlicingBrush : Object, IBrush, IComparable, IEquatable<Texture9SlicingBrush>
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
CompareTo(Object)
Declaration
public int CompareTo(object obj)
Parameters
|
System.Object
obj
|
Returns
|
System.Int32
|
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
Equals(Texture9SlicingBrush)
Declaration
public bool Equals(Texture9SlicingBrush other)
Parameters
|
Texture9SlicingBrush
other
|
Returns
|
System.Boolean
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
|
System.Object
obj
|
Returns
|
System.Boolean
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
|
System.Int32
|