class

Tui::TimePicker

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

Constructors

new(id : String | Nil = nil, hour : Int32 = 0, minute : Int32 = 0, second : Int32 = 0)
Source

Instance methods

hour
Source
hour=(hour : Int32)
Source
min_size
Source
minute
Source
minute=(minute : Int32)
Source
now

Set to current time

Source
on_change

Callback when time 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
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source
second
Source
second=(second : Int32)
Source
selected_style
Source
selected_style=(selected_style : Style)
Source
separator_style
Source
separator_style=(separator_style : Style)
Source
show_seconds
Source
show_seconds=(show_seconds : Bool)
Source
style

Styling

Source
style=(style : Style)

Styling

Source
time

Get as Time (today with this time)

Source
time=(t : Time) : Nil

Set time from Time object

Source
to_s

Format time as string

Source
use_24h
Source
use_24h=(use_24h : Bool)
Source

Nested types