widget

package
v0.0.0-...-ebee754 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeFunc

type ChangeFunc func(i int, v interface{})

type ContentView

type ContentView struct {
	// contains filtered or unexported fields
}

func NewContentView

func NewContentView(name string, width int, height int) *ContentView

func (*ContentView) AppendString

func (widget *ContentView) AppendString(s string)

func (*ContentView) Editable

func (widget *ContentView) Editable() *ContentView

func (*ContentView) Layout

func (widget *ContentView) Layout(ui *gocui.Gui) (err error)

func (*ContentView) Offset

func (widget *ContentView) Offset(x, y int) *ContentView

func (*ContentView) SetContent

func (widget *ContentView) SetContent(s string) *ContentView

func (*ContentView) Title

func (widget *ContentView) Title(s string) *ContentView

func (*ContentView) Write

func (widget *ContentView) Write(p []byte) (n int, err error)

type FormatFunc

type FormatFunc func(i int, v interface{}) string

type ListView

type ListView struct {
	// contains filtered or unexported fields
}

func NewListView

func NewListView(name string, width int, height int) *ListView

func (*ListView) Item

func (widget *ListView) Item(idx int) (v interface{}, ok bool)

func (*ListView) Layout

func (widget *ListView) Layout(ui *gocui.Gui) (err error)

func (*ListView) MoveNext

func (widget *ListView) MoveNext() (v interface{})

func (*ListView) MovePrev

func (widget *ListView) MovePrev() (v interface{})

func (*ListView) Offset

func (widget *ListView) Offset(x, y int) *ListView

func (*ListView) Push

func (widget *ListView) Push(v interface{})

func (*ListView) Reset

func (widget *ListView) Reset(f func(v interface{}))

func (*ListView) Title

func (widget *ListView) Title(s string) *ListView

func (*ListView) WithChange

func (widget *ListView) WithChange(f ChangeFunc) *ListView

func (*ListView) WithFormat

func (widget *ListView) WithFormat(f FormatFunc) *ListView

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL