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

PixelPaint: Add copy action (copies the selection from active layer)

You can now select a part of a layer, copy it, and then paste it as
a new layer. Very cool :^)
This commit is contained in:
Andreas Kling 2021-06-14 17:59:15 +02:00
parent 4cecd79000
commit 765286f691
4 changed files with 29 additions and 0 deletions

View file

@ -21,6 +21,7 @@ public:
bool is_empty() const { return m_rect.is_empty(); }
void clear() { m_rect = {}; }
void set(Gfx::IntRect const& rect) { m_rect = rect; }
Gfx::IntRect bounding_rect() const { return m_rect; }
void paint(Gfx::Painter&, ImageEditor const&);