summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/Image.h
diff options
context:
space:
mode:
authorMarcus Nilsson <brainbomb@gmail.com>2021-07-05 22:42:43 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-08 20:16:26 +0200
commit9be08e33eae4d582695c605d2a076e96e3a783a9 (patch)
tree9f609791e51017ed0f6f9a611b5af5a844e79959 /Userland/Applications/PixelPaint/Image.h
parent76a18e1172a9389fad540fcfdf81252e237da2de (diff)
downloadserenity-9be08e33eae4d582695c605d2a076e96e3a783a9.zip
PixelPaint: Add method to flatten image layers
This adds Image::flatten_all_layers() that allows the user to flatten all the visible layers into one.
Diffstat (limited to 'Userland/Applications/PixelPaint/Image.h')
-rw-r--r--Userland/Applications/PixelPaint/Image.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/Image.h b/Userland/Applications/PixelPaint/Image.h
index e42f9d8259..1268b8d9d0 100644
--- a/Userland/Applications/PixelPaint/Image.h
+++ b/Userland/Applications/PixelPaint/Image.h
@@ -68,6 +68,7 @@ public:
void change_layer_index(size_t old_index, size_t new_index);
void remove_layer(Layer&);
void select_layer(Layer*);
+ void flatten_all_layers();
void add_client(ImageClient&);
void remove_client(ImageClient&);