Documentation
¶
Index ¶
- Variables
- func GetCell(text string, st tcell.Style) *tview.TableCell
- type CenteredWidget
- type InteractiveView
- func (i *InteractiveView) DisableVisualMode(disable bool)
- func (i *InteractiveView) ExitVisualMode()
- func (i *InteractiveView) SetCapture(f func(e *tcell.EventKey) *tcell.EventKey)
- func (i *InteractiveView) SetContentFunc(f func() [][]*tview.TableCell)
- func (i *InteractiveView) SetVisualCapture(f func(start, end int, e *tcell.EventKey) *tcell.EventKey)
- type View01
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Defaultstyle = tcell.StyleDefault. Foreground(defaultfg). Background(defaultbg) OutOfBound = -1 )
View Source
var ( KeyJ = tcell.NewEventKey(tcell.KeyRune, 'j', tcell.ModNone) KeyK = tcell.NewEventKey(tcell.KeyRune, 'k', tcell.ModNone) )
Functions ¶
Types ¶
type CenteredWidget ¶
type InteractiveView ¶
func NewInteractiveView ¶
func NewInteractiveView() *InteractiveView
func (*InteractiveView) DisableVisualMode ¶
func (i *InteractiveView) DisableVisualMode(disable bool)
func (*InteractiveView) ExitVisualMode ¶
func (i *InteractiveView) ExitVisualMode()
func (*InteractiveView) SetCapture ¶
func (i *InteractiveView) SetCapture( f func(e *tcell.EventKey) *tcell.EventKey)
Sets Input Capture. Default Keys for Interactive View can't be overridden.
func (*InteractiveView) SetContentFunc ¶
func (i *InteractiveView) SetContentFunc(f func() [][]*tview.TableCell)
f should return [][]*tview.TableCell that is then used to set the content of the View.
func (*InteractiveView) SetVisualCapture ¶
func (i *InteractiveView) SetVisualCapture(f func(start, end int, e *tcell.EventKey) *tcell.EventKey)
Click to show internal directories.
Click to hide internal directories.