mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:37:45 +00:00
PixelPaint: Undo and redo actions
The most used feature of any image editor, undo. Each tool now notifies the ImageEditor that they completed an action, where it'll take a snapshot if its current state. For now, a snapshot is just a copy of the whole image and its layers. There's a hard limit on the amount of actions it stores.
This commit is contained in:
parent
5aeab9878e
commit
1c27568ab0
21 changed files with 256 additions and 2 deletions
|
@ -46,6 +46,7 @@ class Layer
|
|||
public:
|
||||
static RefPtr<Layer> create_with_size(Image&, const Gfx::IntSize&, const String& name);
|
||||
static RefPtr<Layer> create_with_bitmap(Image&, const Gfx::Bitmap&, const String& name);
|
||||
static RefPtr<Layer> create_snapshot(Image&, const Layer&);
|
||||
|
||||
~Layer() { }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue