diff options
author | Andreas Kling <kling@serenityos.org> | 2021-06-14 17:59:15 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-14 18:25:17 +0200 |
commit | 765286f691154075989573356ef838e0d3c0c70c (patch) | |
tree | b68b082f30f37713a6f113022a44a72c596db7f8 /Userland/Applications/PixelPaint/Selection.h | |
parent | 4cecd7900036554c7d153ca8b876bbc49b3bd31f (diff) | |
download | serenity-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.h | 1 |
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&); |