Documentation ¶
Index ¶
- func Center(width, height int, p tview.Primitive) *tview.Flex
- func CenterHorizontally(width int, p tview.Primitive) *tview.Flex
- func CenterVertically(height int, p tview.Primitive) *tview.Flex
- func CenterVerticallyDynamically(p tview.Primitive) *tview.Flex
- func ErrorToUserFeedback(err error) (feedback string)
- func MinFormSize(form *tview.Form) (width, height int)
- func MinListSize(list *customshortcutlist.List) (width, height int)
- func MinTextViewWithNoWrapSize(textView *tview.TextView) (width, height int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Center ¶
Center returns a new primitive which shows the provided primitive in its center, given the provided primitive's size.
func CenterHorizontally ¶
CenterHorizontally returns a new primitive which shows the provided primitive in its horizontal center, given the provided primitive's width.
func CenterVertically ¶
CenterVertically returns a new primitive which shows the provided primitive in its vertical center, given the provided primitive's height.
func CenterVerticallyDynamically ¶
CenterVerticallyDynamically returns a new primitive which shows the provided primitive in its vertical center based on its render size, will dynamically update with the element.
func ErrorToUserFeedback ¶
ErrorToUserFeedback will convert an error object into a user-friendly message.
func MinFormSize ¶
MinFormSize returns a minimum width and height needed for a form. This does not yet handle buttons or horizontal forms.
func MinListSize ¶
func MinListSize(list *customshortcutlist.List) (width, height int)
MinListSize returns a minimum width and height needed for a list. Does not yet handle secondary text.
func MinTextViewWithNoWrapSize ¶
MinTextViewWithNoWrapSize returns the minimum width and height needed for a textview. This does not yet handle wrapping.
Types ¶
This section is empty.