Kage Studio 0.7.240121
A Simple Free and Open Source 2D Animation Software
Loading...
Searching...
No Matches
UnRe Class Reference

#include <unre.h>

Collaboration diagram for UnRe:

Public Member Functions

 UnRe ()
 
virtual ~UnRe ()
 
void stackDocument (KageDocument p_document)
 
KageDocument undoDocument ()
 
KageDocument redoDocument ()
 
KageDocument previewUndoDocument ()
 
void clear ()
 

Protected Attributes

unsigned int _stackIndex
 
KageDocument_kageDocument
 
std::vector< KageDocument * > _undoStack
 

Constructor & Destructor Documentation

◆ UnRe()

UnRe::UnRe ( )
Here is the call graph for this function:

◆ ~UnRe()

UnRe::~UnRe ( )
virtual
Here is the call graph for this function:

Member Function Documentation

◆ clear()

void UnRe::clear ( )
Here is the caller graph for this function:

◆ previewUndoDocument()

KageDocument UnRe::previewUndoDocument ( )

While undo() pops a KageDocument from a stack, this just gives a preview of the top KageDocument on the stack.

Returns
latest state pushed in the stack
See also
undoDocument()

◆ redoDocument()

KageDocument UnRe::redoDocument ( )

◆ stackDocument()

void UnRe::stackDocument ( KageDocument p_document)

◆ undoDocument()

KageDocument UnRe::undoDocument ( )

Field Documentation

◆ _kageDocument

KageDocument* UnRe::_kageDocument
protected

◆ _stackIndex

unsigned int UnRe::_stackIndex
protected

◆ _undoStack

std::vector<KageDocument*> UnRe::_undoStack
protected

The documentation for this class was generated from the following files: