mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +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
16 changed files with 46 additions and 16 deletions
|
@ -21,6 +21,8 @@ public:
|
|||
virtual Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> cursor() override { return m_cursor; }
|
||||
|
||||
private:
|
||||
virtual StringView tool_name() const override { return "Bucket Tool"sv; }
|
||||
|
||||
RefPtr<GUI::Widget> m_properties_widget;
|
||||
int m_threshold { 0 };
|
||||
Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> m_cursor { Gfx::StandardCursor::Crosshair };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue