Open 3D Engine LyShine Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <UiAnimUndoManager.h>
Public Member Functions | |
void | Begin () |
void | Restore (bool bUndo=true) |
void | Accept (const AZStd::string &name) |
void | Cancel () |
Cancel changes and restore undo objects. | |
void | Suspend () |
Temporarily suspends recording of undo. | |
void | Resume () |
Resume recording if was suspended. | |
void | Undo () |
void | Redo () |
Redo last undo. | |
void | RedoStep (UiAnimUndoStep *step) |
void | UndoStep (UiAnimUndoStep *step) |
bool | IsUndoRecording () const |
Check if undo information is recording now. | |
bool | IsUndoSuspended () const |
void | RecordUndo (UiAnimUndoObject *obj) |
Put new undo object, must be called between Begin and Accept/Cancel methods. | |
void | Flush () |
void | AddListener (IUndoManagerListener *pListener) |
void | RemoveListener (IUndoManagerListener *pListener) |
void | SetActiveUndoStack (UndoStack *undoStack) |
UndoStack * | GetActiveUndoStack () const |
Static Public Member Functions | |
static UiAnimUndoManager * | Get () |
UiAnimUndoManager is keeping and operating on UiAnimUndo class instances.
void UiAnimUndoManager::Accept | ( | const AZStd::string & | name | ) |
Accept changes and registers an undo object with the undo manager. This will allow the user to undo the operation.
void UiAnimUndoManager::Begin | ( | ) |
Begin operation requiring undo. Undo manager enters holding state.
void UiAnimUndoManager::Flush | ( | ) |
Completly flush all Undo and redo buffers. Must be done on level reloads or global Fetch operation.
void UiAnimUndoManager::Restore | ( | bool | bUndo = true | ) |
Restore all undo objects registered since last Begin call.
bUndo | if true all Undo object registered up to this point will be undone. |