Cresium::TimerController
Inherits Cresium::Dispatchable < Reference < Object
Owns the timer screen's state (the list of timers, which one is active,
the hh:mm:ss / target-time input buffers) and its keyboard handlers, and
drives its TimerView.
Constants
HISTORY_MAX = 3
TARGET_TIME_DIGITS = 4
hh:mm target-time input, toggled with [t] while editing a timer.
TARGET_TIME_LAST_DIGIT = TARGET_TIME_DIGITS - 1
TIMER_DIGITS = 6
TIMER_LAST_DIGIT = TIMER_DIGITS - 1
Constructors
Instance methods
buffer
Sourceediting?
SourceEntry point for keyboard input on this screen; routes to the
:timer_editing handlers while entering a duration, or :timer_running
ones once a timer has been set. Refreshes the status line whenever an
editing key was actually handled (its hint text depends on the input).
Positions the view's widgets within rect (called on resize/screen switch).
Pushes the current state to the view for rendering (called every frame).
timers
Sourceview
Source