Files
beatglow/ui/widget.go
T
2026-10-29 17:29:41 +01:00

17 lines
313 B
Go

package ui
// Screen is a named collection of widgets.
type Screen interface {
String() string
Widgets() []Widget
SetVisible(visible bool)
}
type Widget interface {
// Render the widget to the display buffer; after rendering the display probably still
// requires refreshing.
Render(redraw bool) bool
}