NineSliceInfo
Namespace: Murder.Core.Graphics
Assembly: Murder.dll
public sealed struct NineSliceInfo
⭐ Constructors
public NineSliceInfo()
public NineSliceInfo(Rectangle core, Guid image)
Parameters
core Rectangle
image Guid
public NineSliceInfo(Guid image)
Parameters
image Guid
⭐ Properties
Core
public readonly Rectangle Core;
Returns
Rectangle
Empty
public static NineSliceInfo Empty { get; }
Returns
NineSliceInfo
Image
public readonly Guid Image;
Returns
Guid
⭐ Methods
Cache()
public CachedNineSlice Cache()
Returns
CachedNineSlice
Draw(Batch2D, Rectangle, DrawInfo, AnimationInfo)
public void Draw(Batch2D batch, Rectangle target, DrawInfo info, AnimationInfo animationInfo)
Parameters
batch Batch2D
target Rectangle
info DrawInfo
animationInfo AnimationInfo
Draw(Batch2D, Rectangle, string, Color, float)
public void Draw(Batch2D batch, Rectangle target, string animation, Color color, float sort)
Parameters
batch Batch2D
target Rectangle
animation string
color Color
sort float
⚡