class

CArcTextUndoStack

Module
Arc
Header
#include "Arc/Widgets/CArcTextUndoStack.h"
Namespace
Arcf

Properties

TypeNameDescription
static constexpr size_tkLimitDefault 64.

Public functions

ReturnsNameDescription
voidPushRecords the state BEFORE an edit.
boolUndo
boolRedo
voidClear
boolCanUndo
boolCanRedo

Function details

Push

C++
void Push(const std::string& text, int32_t cursor)

Records the state BEFORE an edit. A snapshot equal to the last one is dropped, so a no-op keystroke does not cost an undo step.

Undo

C++
bool Undo(std::string& inOutText, int32_t& inOutCursor)

Redo

C++
bool Redo(std::string& inOutText, int32_t& inOutCursor)

Clear

C++
void Clear()

CanUndo

C++
bool CanUndo() const

CanRedo

C++
bool CanRedo() const
Generated from Arc/Widgets/CArcTextUndoStack.h via arc.json · Nov 5, 2026Version 1.0.0