class

TuiEditor::CodePreview

Inherits Tui::Panel / Tui::Widget / Tui::Reactive / Reference / Object

Constructors

Instance methods

canvas=(canvas : Canvas) : Nil
Source
cycle_format
Source
editing?
Source
format
Source
format=(f : Format) : Nil
Source
handle_event(event : Tui::Event) : Bool

KISS event handling with capture support Flow: on_capture → children → on_event Override on_capture to intercept before children Override on_event to handle after children

Source
has_selection?
Source
parse_error
Source
render(buffer : Tui::Buffer, clip : Tui::Rect) : Nil

Override to render widget content

Source
start_editing

Enter edit mode

Source
stop_editing(apply : Bool = true) : Nil

Exit edit mode, parse and apply changes

Source
update_code
Source

Nested types