Interface IDrawable
Defines the trains required for an object to be drawable onto a IDrawSurface.
Namespace: Sharpie.Abstractions
Assembly: sharpie.dll
Syntax
[PublicAPI]
public interface IDrawable
Properties
Size
The size of the drawable.
Declaration
Size Size { get; }
Property Value
Type | Description |
---|---|
Size |
Methods
DrawOnto(IDrawSurface, Rectangle, Point)
Draws the drawable onto a given surface.
Declaration
void DrawOnto(IDrawSurface destination, Rectangle srcArea, Point destLocation)
Parameters
Type | Name | Description |
---|---|---|
IDrawSurface | destination | The surface to draw on. |
Rectangle | srcArea | The source area to draw. |
Point | destLocation | The destination location. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |