Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnState ¶
type ConnState struct {
*tui.Label
}
ConnState is a Widget that displays a single character indicating the current connection state.
func NewConnState ¶
func NewConnState() *ConnState
func (*ConnState) Set ¶
func (c *ConnState) Set(state data.ConnectionState)
type Filler ¶
type Filler struct { tui.WidgetBase // contains filtered or unexported fields }
Filler is a Widget that fills itself with a given rune. It expands according to the usual SizePolicy mapping; note that "Maximum" may be necessary to restrict it in a single dimension.
type Quitter ¶
type Quitter interface {
Quit()
}
Quitter is a type that supports the ui.Quit() operation.
type TailBox ¶
type TailBox struct { tui.WidgetBase // contains filtered or unexported fields }
TailBox is a container Widget that may not show all its Widgets. While tui.Box attempts to show every contained Widget - sometimes shrinking those Widgets to do so- TailBox prioritizes completely displaying its last Widget, then the next-to-last widget, etc. It is vertically-aligned, i.e. all the contained Widgets have the same width.
func NewTailBox ¶
func NewTailBox(w ...tui.Widget) *TailBox
func (*TailBox) SetContents ¶
func (t *TailBox) SetContents(w ...tui.Widget)