1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:37:34 +00:00

PixelPaint: Support using a bitmap as a tool's cursor

This commit is contained in:
Marco Cutecchia 2021-10-17 21:07:12 +02:00 committed by Andreas Kling
parent 116bb4888f
commit 0f24678eaf
14 changed files with 16 additions and 14 deletions

View file

@ -24,7 +24,7 @@ public:
virtual void on_second_paint(Layer const*, GUI::PaintEvent&) override;
virtual void on_keydown(GUI::KeyEvent&) override;
virtual GUI::Widget* get_properties_widget() override;
virtual Gfx::StandardCursor cursor() override { return Gfx::StandardCursor::Crosshair; }
virtual Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> cursor() override { return Gfx::StandardCursor::Crosshair; }
private:
enum class FillMode {