class

Tui::Slider

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

Constructors

new(id : String | Nil = nil, min : Float64 = 0.0, max : Float64 = 100.0, value : Float64 = 0.0, step : Float64 = 1.0)
Source

Instance methods

decrement
Source
decrement_large
Source
filled_char
Source
filled_char=(filled_char : Char)
Source
filled_style
Source
filled_style=(filled_style : Style)
Source
increment

Increment/decrement

Source
increment_large
Source
max=(max : Float64)
Source
min=(min : Float64)
Source
min_size
Source
on_change

Callback when value changes

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
percentage

Get percentage (0.0 - 1.0)

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

Override to render widget content

Source
show_value
Source
show_value=(show_value : Bool)
Source
step
Source
step=(step : Float64)
Source
thumb_char
Source
thumb_char=(thumb_char : Char)
Source
thumb_style
Source
thumb_style=(thumb_style : Style)
Source
track_char

Styling

Source
track_char=(track_char : Char)

Styling

Source
track_style
Source
track_style=(track_style : Style)
Source
value
Source
value=(val : Float64) : Nil

Set value with bounds checking

Source
value_width
Source
value_width=(value_width : Int32)
Source