38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
/// file: PaintTool.cs
|
|
/// Author: Maxime Rohmer <maxluligames@gmail.com>
|
|
/// Brief: Interface that is here to define what is a paint tool
|
|
/// Version: 0.1.0
|
|
/// Date: 25/05/2022
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Drawing;
|
|
|
|
namespace Paint_2
|
|
{
|
|
internal interface PaintTool
|
|
{
|
|
List<List<Point>> Drawings { get; set; }
|
|
List<List<Point>> DrawingsRedo { get; set; }
|
|
List<Color> Colors { get; set; }
|
|
List<Color> ColorsRedo { get; set; }
|
|
Color Color { get; set; }
|
|
List<int> Widths { get; set; }
|
|
List<int> WidthsRedo { get; set; }
|
|
int Width { get; set; }
|
|
string Name { get; set; }
|
|
|
|
void Start(Color color, int width);
|
|
void Stop(Point point);
|
|
void Add(Point point);
|
|
void Undo();
|
|
void Redo();
|
|
void Clear();
|
|
List<Color> GetLastColors(int colorNumber);
|
|
void Paint(Bitmap canvas);
|
|
string ToString();
|
|
}
|
|
}
|