1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:47:35 +00:00

PixelPaint: Use a bucket cursor for the Bucket tool

This commit is contained in:
Marco Cutecchia 2021-10-17 21:11:20 +02:00 committed by Andreas Kling
parent 0f24678eaf
commit 81b260bd1c
2 changed files with 5 additions and 0 deletions

View file

@ -17,10 +17,12 @@ public:
virtual void on_mousedown(Layer*, MouseEvent&) override;
virtual GUI::Widget* get_properties_widget() override;
virtual Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> cursor() override { return m_cursor; }
private:
RefPtr<GUI::Widget> m_properties_widget;
int m_threshold { 0 };
Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> m_cursor { Gfx::StandardCursor::Crosshair };
};
}