1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00
wtf/wtf/wtfable.go
Chris Cummer beb0c43b07 Add character identifiers to focusable widgets
When no widget has focus, press the letter key to focus on the widget
assigned to that letter.

Example:

    GitHub (d)

    Press "d" to focus on the GitHub widget.
2018-07-30 15:51:19 -07:00

22 lines
259 B
Go

package wtf
import (
"github.com/rivo/tview"
)
type Wtfable interface {
Enabler
Scheduler
BorderColor() string
Focusable() bool
FocusChar() string
SetFocusChar(string)
TextView() *tview.TextView
Top() int
Left() int
Width() int
Height() int
}