mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:17:35 +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:
parent
4cecd79000
commit
765286f691
4 changed files with 29 additions and 0 deletions
|
@ -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&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue