class

Phosphor::StatusBarWidget

Inherits Phosphor::Widget < Reference < Object

A minimal status-bar widget that renders nothing.

Placeholder until a real status bar is implemented. Satisfies the Widget contract so DashboardScreen can mount it in the view.

Constructors

new(app : App(S, M))
Source

Instance methods

on_event(event : Event) : Msg | Nil

Translates event into an application Msg, or returns nil if this widget does not handle the event.

This is the only place that maps Event → Msg. Return nil for every event the widget does not consume; View#dispatch collects non-nil results and forwards them to Screen#handle.

Source
render(frame : Frame, buf : Buffer) : Void

Writes this widget's cells into buf within the bounds of frame.

Delegates to the wrapped MockWidget#render. View#render_widget always calls sync before render on each frame, so @mock.props is up-to-date when this runs.

Source
sync(state : AppState) : Void

Rebuilds the wrapped MockWidget's Props from state and app.theme.

This is the only place that calls app.theme. All theme → Style resolution happens here; the wrapped MockWidget only ever receives already-resolved Style values.

Source