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

PixelPaint: Let Tools have different cursors

This adds support for the Tools in PixelPaint to use different cursors
within ImageEditor. For now most of them get the crosshair cursor since
it's the most fitting, but in the future we will want to add custom
cursors.
This commit is contained in:
Marcus Nilsson 2021-08-08 20:50:27 +02:00 committed by Andreas Kling
parent 657fbc1e6c
commit b1b6a6d6e8
14 changed files with 28 additions and 3 deletions

View file

@ -100,6 +100,7 @@ private:
virtual void keyup_event(GUI::KeyEvent&) override;
virtual void context_menu_event(GUI::ContextMenuEvent&) override;
virtual void resize_event(GUI::ResizeEvent&) override;
virtual void enter_event(Core::Event&) override;
virtual void leave_event(Core::Event&) override;
virtual void image_did_change(Gfx::IntRect const&) override;
@ -130,6 +131,8 @@ private:
Gfx::FloatPoint m_saved_pan_origin;
Gfx::IntPoint m_click_position;
Gfx::StandardCursor m_active_cursor { Gfx::StandardCursor::None };
Selection m_selection;
};