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:
parent
55feecee36
commit
3faf089be5
7 changed files with 83 additions and 3 deletions
|
@ -102,6 +102,8 @@ public:
|
|||
|
||||
Gfx::Bitmap& currently_edited_bitmap();
|
||||
|
||||
ErrorOr<NonnullRefPtr<Layer>> duplicate(DeprecatedString name);
|
||||
|
||||
private:
|
||||
Layer(Image&, NonnullRefPtr<Gfx::Bitmap>, DeprecatedString name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue