summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/Selection.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-14 17:59:15 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-14 18:25:17 +0200
commit765286f691154075989573356ef838e0d3c0c70c (patch)
treeb68b082f30f37713a6f113022a44a72c596db7f8 /Userland/Applications/PixelPaint/Selection.h
parent4cecd7900036554c7d153ca8b876bbc49b3bd31f (diff)
downloadserenity-765286f691154075989573356ef838e0d3c0c70c.zip
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 :^)
Diffstat (limited to 'Userland/Applications/PixelPaint/Selection.h')
-rw-r--r--Userland/Applications/PixelPaint/Selection.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/Selection.h b/Userland/Applications/PixelPaint/Selection.h
index 1322a14563..9c73f4f29a 100644
--- a/Userland/Applications/PixelPaint/Selection.h
+++ b/Userland/Applications/PixelPaint/Selection.h
@@ -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&);