mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +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
|
@ -26,6 +26,7 @@ public:
|
|||
virtual void on_keyup(GUI::KeyEvent&) override;
|
||||
virtual void on_second_paint(Layer const&, GUI::PaintEvent&) override;
|
||||
virtual GUI::Widget* get_properties_widget() override;
|
||||
virtual Gfx::StandardCursor cursor() override { return Gfx::StandardCursor::Crosshair; }
|
||||
|
||||
private:
|
||||
enum class MovingMode {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue