1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 04:47:34 +00:00

PixelPaint: Add a Duplicate Layer action

The "Duplicate Layer" action inserts a copy of the selected layer into
the layer stack. The new layer is placed above the selected layer.
This commit is contained in:
Tim Ledbetter 2023-03-24 17:51:24 +00:00 committed by Jelle Raaijmakers
parent 55feecee36
commit 3faf089be5
7 changed files with 83 additions and 3 deletions

View file

@ -102,6 +102,8 @@ public:
Gfx::Bitmap& currently_edited_bitmap();
ErrorOr<NonnullRefPtr<Layer>> duplicate(DeprecatedString name);
private:
Layer(Image&, NonnullRefPtr<Gfx::Bitmap>, DeprecatedString name);