SpriteClippingRectComponent
Namespace: Murder.Components
Assembly: Murder.dll
public sealed struct SpriteClippingRectComponent : IComponent
Implements: IComponent
⭐ Constructors
public SpriteClippingRectComponent(float left, float right, float top, float down, ClippingStyle clippingStyle)
Parameters
left
float
right
float
top
float
down
float
clippingStyle
ClippingStyle
⭐ Properties
Down
public readonly float Down;
Returns
float
Left
public readonly float Left;
Returns
float
Right
public readonly float Right;
Returns
float
Style
public readonly ClippingStyle Style;
Returns
ClippingStyle
Top
public readonly float Top;
Returns
float
⭐ Methods
GetClippingRect(Point)
public Rectangle GetClippingRect(Point spriteSize)
Parameters
spriteSize
Point
Returns
Rectangle
⚡