mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:27:35 +00:00
PixelPaint: Support using a bitmap as a tool's cursor
This commit is contained in:
parent
116bb4888f
commit
0f24678eaf
14 changed files with 16 additions and 14 deletions
|
@ -19,7 +19,7 @@ public:
|
|||
virtual void on_mousemove(Layer*, MouseEvent&) override;
|
||||
virtual void on_mouseup(Layer*, MouseEvent&) override;
|
||||
virtual void on_keydown(GUI::KeyEvent&) override;
|
||||
virtual Gfx::StandardCursor cursor() override { return Gfx::StandardCursor::Move; }
|
||||
virtual Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> cursor() override { return Gfx::StandardCursor::Move; }
|
||||
|
||||
private:
|
||||
RefPtr<Layer> m_layer_being_moved;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue