class TextUi::UndoStack
- TextUi::UndoStack
- Reference
- Object
Defined in:
textui/undo_stack.crClass Method Summary
Instance Method Summary
- #can_redo?
- #can_undo?
- #clean_state?
- #clear
-
#merge_interval : Int32
If the time between two mergeable commands happen is less than merge_interval, they will be merged into a single command.
-
#merge_interval=(merge_interval : Int32)
If the time between two mergeable commands happen is less than merge_interval, they will be merged into a single command.
- #push(cmd : UndoCommand) : Nil
- #redo
- #set_clean_state
- #size(*args, **options)
- #size(*args, **options, &)
- #undo : Nil
Class Method Detail
Instance Method Detail
def merge_interval : Int32
#
If the time between two mergeable commands happen is less than merge_interval, they will be merged into a single command. merge_interval is specified in milliseconds, default to 1000ms.
def merge_interval=(merge_interval : Int32)
#
If the time between two mergeable commands happen is less than merge_interval, they will be merged into a single command. merge_interval is specified in milliseconds, default to 1000ms.