class

Tui::Switch

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

Constructors

new(id : String | Nil = nil, on : Bool = false)
Source

Instance methods

min_size
Source
off_color
Source
off_color=(off_color : Color)
Source
off_label
Source
off_label=(off_label : String)
Source
on=(on : Bool)
Source
on_change
Source
on_color
Source
on_color=(on_color : Color)
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
on_label
Source
on_label=(on_label : String)
Source
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source
thumb_color
Source
thumb_color=(thumb_color : Color)
Source
toggle
Source
track_width
Source
track_width=(track_width : Int32)
Source