Documentation ¶
Index ¶
- func CalculateNecessaryHeight(width int, text string) int
- func ColorToHex(color tcell.Color) string
- func CreateCenteredComponent(component tview.Primitive, width int) tview.Primitive
- func CreateFocusTextViewOnTypeInputHandler(app *tview.Application, component *tview.TextView) func(event *tcell.EventKey) *tcell.EventKey
- func Escape(text string) string
- func FocusNextIfPossible(direction tview.FocusDirection, app *tview.Application, ...)
- func GetNodeByReference(reference interface{}, tree *tview.TreeView) *tview.TreeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateNecessaryHeight ¶
CalculateNecessaryHeight calculates the necessary height in the ui given the text and the width of the component the text will appear in.
func ColorToHex ¶
ColorToHex converts the tcell.Color to it's hexadecimal presentation and returns it as a string prepended with a # character.
func CreateCenteredComponent ¶
func FocusNextIfPossible ¶
func FocusNextIfPossible(direction tview.FocusDirection, app *tview.Application, focused tview.Primitive)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.