bool sgCScene::IsRedoStackEmpty() const
Description:
Checks whether the Redo history is empty.
Arguments:
No arguments.
Returned value:
Returns false if there are any commands in the Redo history and true if the history is empty.
Example:
sgLine* line1 = sgCreateLine(0.0, 0.0, 0.0, 2.0, 3.0, 5.0);
sgLine* line2 = line1->Clone();
sgGetScene()->StartUndoGroup();
sgGetScene()->AttachObject(line1);
sgGetScene()->AttachObject(line2);
sgGetScene()->EndUndoGroup();
asset(sgGetScene()->IsUndoStackEmpty()==false);
asset(sgGetScene()->IsRedoStackEmpty()==true);
sgGetScene()->Undo();
asset(sgGetScene()->IsUndoStackEmpty()==true);
asset(sgGetScene()->IsRedoStackEmpty()==false);
See also:
GetScene StartUndoGroup IsUndoStackEmpty IsRedoStackEmpty Undo Redo