mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 18:17:23 +00:00
PixelPaint: Add Tool::tool_name() as a single-point-of-truth
Let the tools know what their names are.
This commit is contained in:
parent
c45f99f735
commit
101eb53de5
Notes:
sideshowbarker
2024-07-17 08:05:29 +09:00
Author: https://github.com/awesomekling
Commit: 101eb53de5
16 changed files with 46 additions and 16 deletions
|
@ -28,6 +28,8 @@ public:
|
|||
virtual Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> cursor() override { return Gfx::StandardCursor::Crosshair; }
|
||||
|
||||
private:
|
||||
virtual StringView tool_name() const override { return "Rectangle Tool"sv; }
|
||||
|
||||
enum class FillMode {
|
||||
Outline,
|
||||
Fill,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue