class

Cresium::LapGrid

Inherits Cresium::RenderHelpers < Tui::Widget < Tui::Reactive < Reference < Object

Renders a Stopwatch's laps in columns, most recent first, ROWS lines per column. Adds columns as long as the widget's width allows.

Constants

ROWS = 5

Instance methods

compact

True to omit milliseconds from lap times (narrow terminals, see Cresium::LayoutConfig.compact_laps?).

Source
compact=(compact : Bool)

True to omit milliseconds from lap times (narrow terminals, see Cresium::LayoutConfig.compact_laps?).

Source
laps
Source
laps=(laps : Array(Time::Span))
Source
min_size

No minimum width (columns collapse to zero if there's no room); always reserves ROWS lines of height.

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

Draws as many lap columns as fit in the widget's width.

Source
style
Source
style=(style : Tui::Style)
Source