mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:38:13 +00:00
PixelPaint: Support panning and scaling the image we're working on :^)
ImageEditor now supports panning (Ctrl+MiddleMouse) and scaling (Wheel) the image. This took a lot of unpleasant coordinate math, but now it actually kinda works and feels awesome! :^)
This commit is contained in:
parent
58fa9c6e89
commit
bf9e190533
4 changed files with 159 additions and 26 deletions
|
@ -51,7 +51,7 @@ public:
|
|||
|
||||
void add_layer(NonnullRefPtr<Layer>);
|
||||
|
||||
void paint_into(GUI::Painter&, const Gfx::Rect& dest_rect, const Gfx::Rect& src_rect);
|
||||
void paint_into(GUI::Painter&, const Gfx::Rect& dest_rect);
|
||||
|
||||
GUI::Model& layer_model();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue