Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Header ¶
type Header struct { Titles []HeaderTitle Fg termbox.Attribute Bg termbox.Attribute // Colors for the active tab FgActive termbox.Attribute BgActive termbox.Attribute Active int IsActive bool // Is a tab activated }
type HeaderTitle ¶
type MainWindow ¶
type MainWindow struct {
Fg, Bg termbox.Attribute
EventFunc EventFunc // global event function
// contains filtered or unexported fields
}
MainWindow controls all windows inside it.
var Screen *MainWindow
type UpdateFunc ¶
type UpdateFunc func() []Row
type WidgetTable ¶
func (*WidgetTable) EventFunc ¶
func (wg *WidgetTable) EventFunc(ev termbox.Event)
func (*WidgetTable) Update ¶
func (wg *WidgetTable) Update(win *Window) []Row
type Window ¶
type Window struct {
X, Y int
SizeX, SizeY int
// AutoResize does not allow a fix SizeX and SizeY
AutoResize bool
UpdateFunc UpdateFunc
EventFunc EventFunc
SubWindows []*Window
// contains filtered or unexported fields
}
func (*Window) NewSubWindow ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.