actions/undo_stack.h file

Contents

Undo stack.

Classes

struct UndoStack
Serializable stack for undoable actions.

Typedefs

using UndoStack = struct UndoStack
Serializable stack for undoable actions.

Functions

auto undo_stack_new(void) -> UndoStack*
Creates a new stack for undoable actions.
auto undo_stack_pop_last(UndoStack* self) -> UndoableAction*
Pops the last element and moves everything back.
void undo_stack_clear(UndoStack* self, bool free)
Clears the stack, optionally freeing all the elements.