mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02: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:
Notes:
sideshowbarker
2024-07-17 08:05:29 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/101eb53de5
@@ -30,6 +30,8 @@ public:
|
||||
virtual Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> cursor() override { return Gfx::StandardCursor::Crosshair; }
|
||||
|
||||
private:
|
||||
virtual StringView tool_name() const override { return "Rectangle Select Tool"sv; }
|
||||
|
||||
enum class MovingMode {
|
||||
MovingOrigin,
|
||||
AroundCenter,
|
||||
|
||||
Reference in New Issue
Block a user