Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::editor::UndoEntry Struct Reference

A single entry in the non-destructive undo timeline. More...

#include "donner/editor/UndoTimeline.h"

Collaboration diagram for donner::editor::UndoEntry:
[legend]

Public Attributes

std::string label
 Human-readable label (e.g. "Move element").
UndoSnapshot before
 Element state before the operation.
UndoSnapshot after
 Element state after the operation.
std::optional< size_t > undoOf
 If this entry undoes another entry, the index of that entry.

Detailed Description

A single entry in the non-destructive undo timeline.

Member Data Documentation

◆ after

UndoSnapshot donner::editor::UndoEntry::after

Element state after the operation.

◆ before

UndoSnapshot donner::editor::UndoEntry::before

Element state before the operation.

◆ label

std::string donner::editor::UndoEntry::label

Human-readable label (e.g. "Move element").

◆ undoOf

std::optional<size_t> donner::editor::UndoEntry::undoOf

If this entry undoes another entry, the index of that entry.


The documentation for this struct was generated from the following file: