Documentation ¶
Index ¶
- type Modal
- func (m *Modal) Draw(screen tcell.Screen)
- func (m *Modal) Focus(delegate func(p tview.Primitive))
- func (m *Modal) HasFocus() bool
- func (m *Modal) SetBackgroundColor(color tcell.Color) *Modal
- func (m *Modal) SetBorder(show bool) *Modal
- func (m *Modal) SetBorderColor(color tcell.Color) *Modal
- func (m *Modal) SetText(text string) *Modal
- func (m *Modal) SetTextColor(color tcell.Color) *Modal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Modal ¶
Modal is a centered message window used to inform the user.
This primitive is based on https://github.com/rivo/tview/wiki/Modal.
func (*Modal) Draw ¶
func (m *Modal) Draw(screen tcell.Screen)
Draw draws this primitive onto the screen.
func (*Modal) SetBackgroundColor ¶
SetBackgroundColor sets the color of the modal frame background.
func (*Modal) SetBorder ¶
SetBorder sets the flag indicating whether or not the frame should have a border.
func (*Modal) SetBorderColor ¶
SetBorderColor sets the frame's border color.
func (*Modal) SetText ¶
SetText sets the message text of the window. The text may contain line breaks. Note that words are wrapped, too, based on the final size of the window.
func (*Modal) SetTextColor ¶
SetTextColor sets the color of the message text.
Click to show internal directories.
Click to hide internal directories.