mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
GUI桌面环境
This commit is contained in:
24
Gui/Apps/Paint/Tool.cs
Normal file
24
Gui/Apps/Paint/Tool.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Cosmos.System;
|
||||
|
||||
namespace CMLeonOS.Gui.Apps.Paint
|
||||
{
|
||||
internal abstract class Tool
|
||||
{
|
||||
internal Tool(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
|
||||
internal abstract void Run(Paint paint, Window canvas, MouseState mouseState, int mouseX, int mouseY);
|
||||
|
||||
internal virtual void Selected()
|
||||
{
|
||||
}
|
||||
|
||||
internal virtual void Deselected()
|
||||
{
|
||||
}
|
||||
|
||||
internal string Name { get; init; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user