class TextUi::UndoStack

Defined in:

textui/undo_stack.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.redo_key #

[View source]
def self.redo_key=(key : UInt16) #

[View source]
def self.undo_key #

[View source]
def self.undo_key=(key : UInt16) #

[View source]

Instance Method Detail

def can_redo? #

[View source]
def can_undo? #

[View source]
def clean_state? #

[View source]
def clear #

[View source]
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.


[View source]
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.


[View source]
def push(cmd : UndoCommand) : Nil #

[View source]
def redo #

[View source]
def set_clean_state #

[View source]
def size(*args, **options) #

[View source]
def size(*args, **options, &) #

[View source]
def undo : Nil #

[View source]