24 lines
645 B
C#
24 lines
645 B
C#
using System.Drawing;
|
|
|
|
namespace UseCases
|
|
{
|
|
public interface IDrawable
|
|
{
|
|
/// <summary>
|
|
/// The name of the drawable.
|
|
/// </summary>
|
|
string Name { get; set; }
|
|
/// <summary>
|
|
/// The position of the drawable
|
|
/// </summary>
|
|
Point Position { get; set; }
|
|
|
|
/// <summary>
|
|
/// Draw the drawable
|
|
/// </summary>
|
|
/// <param name="g">The graphics to draw to</param>
|
|
/// <param name="font">The font to draw text with</param>
|
|
/// <param name="p">The pen to draw lines with</param>
|
|
void Draw(Graphics g, Font font, Pen p);
|
|
}
|
|
} |