mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:17:35 +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:
parent
657fbc1e6c
commit
b1b6a6d6e8
14 changed files with 28 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue