mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 22:59:33 +00:00
PixelPaint: Support using a bitmap as a tool's cursor
This commit is contained in:
parent
116bb4888f
commit
0f24678eaf
Notes:
sideshowbarker
2024-07-18 01:42:04 +09:00
Author: https://github.com/mrkct
Commit: 0f24678eaf
Pull-request: https://github.com/SerenityOS/serenity/pull/10381
Reviewed-by: https://github.com/BenWiederhake ✅
Reviewed-by: https://github.com/TobyAsE
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/kleinesfilmroellchen
14 changed files with 16 additions and 14 deletions
|
@ -23,7 +23,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:
|
||||
RefPtr<GUI::Widget> m_properties_widget;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue