17 lines
313 B
Go
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
|
|
}
|