1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:17:45 +00:00

PixelPaint: Show Guides on GuideTool activation

This adds on_tool_activation() to Tool which GuideTool can use
to show guides, if they're hidden, when it's activated. Also
show guides on mousedown since there's no use in drawing invisible
guides.
This commit is contained in:
Marcus Nilsson 2021-08-13 22:40:29 +02:00 committed by Andreas Kling
parent 3b3df40eb9
commit 1ad08ab7d6
6 changed files with 40 additions and 3 deletions

View file

@ -27,6 +27,7 @@ public:
virtual void on_second_paint(Layer const&, GUI::PaintEvent&) { }
virtual void on_keydown(GUI::KeyEvent&) { }
virtual void on_keyup(GUI::KeyEvent&) { }
virtual void on_tool_activation() { }
virtual GUI::Widget* get_properties_widget() { return nullptr; }
virtual Gfx::StandardCursor cursor() { return Gfx::StandardCursor::None; }