class

Tui::TextViewer

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

Constructors

new(id : String | Nil = nil)
Source

Instance methods

bg_color
Source
bg_color=(bg_color : Color)
Source
border_color
Source
border_color=(border_color : Color)
Source
border_style
Source
border_style=(border_style : Panel::BorderStyle)
Source
line_number_color
Source
line_number_color=(line_number_color : Color)
Source
line_number_position
Source
line_number_position=(line_number_position : LineNumberPosition)
Source
load_file(path : Path) : Bool
Source
load_text(text : String, title : String = "Text") : Nil
Source
on_close
Source
on_event(event : Event) : Bool

Override to handle events for this widget (target/bubble phase) Called after children have had a chance to handle the event

Source
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source
show_line_numbers
Source
show_line_numbers=(show_line_numbers : Bool)
Source
text_color
Source
text_color=(text_color : Color)
Source
title
Source
title=(title : String)
Source
title_color
Source
title_color=(title_color : Color)
Source

Nested types