Documentation
¶
Index ¶
- func Clock(s tcell.Screen)
- func DrawBorder(s tcell.Screen, b Box, style tcell.Style)
- func DrawBox(s tcell.Screen, b Box, r rune, style tcell.Style)
- func EventHandle(app *App)
- func Print(s tcell.Screen, x, y int, text string, st tcell.Style)
- func PrintM(s tcell.Screen, x, y int, maxX int, text string, st tcell.Style)
- type App
- func (a *App) AddWindow(w Window)
- func (app *App) ButtonEvent(nr, x, y int)
- func (app *App) Drag(px, py, x, y int)
- func (a *App) Draw()
- func (app *App) FindWin(x, y int) Window
- func (app *App) MMove(x, y int)
- func (a *App) NewTextWin(title string, x, y, w, h int, text string, st tcell.Style) *TextWin
- func (a *App) Quit()
- func (app *App) Raise(w Window)
- type Box
- type DecoratedWin
- type Menu
- type MenuBar
- type SimpleWin
- type TextWin
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventHandle ¶
func EventHandle(app *App)
Types ¶
type App ¶
type App struct {
MB *MenuBar
Screen tcell.Screen
Background tcell.Style
RuneHandler func(r rune)
KeyHandler func(k tcell.Key)
// contains filtered or unexported fields
}
func (*App) ButtonEvent ¶
func (*App) NewTextWin ¶
type DecoratedWin ¶
func (*DecoratedWin) Draw ¶
func (w *DecoratedWin) Draw()
type TextWin ¶
type TextWin struct {
DecoratedWin
Text string
Tail bool
}
Click to show internal directories.
Click to hide internal directories.