listviewport

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 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 Model

type Model struct {
	TopBoundId    int
	BottomBoundId int

	ListItemHeight int
	NumItems       int
	ItemTypeLabel  string
	// contains filtered or unexported fields
}

func NewModel

func NewModel(itemTypeLabel string, numItems, listItemHeight int) Model

func (*Model) FirstItem

func (m *Model) FirstItem() int

func (*Model) GetCurrItem

func (m *Model) GetCurrItem() int

func (*Model) GetNumRowsPerPage

func (m *Model) GetNumRowsPerPage() int

func (*Model) LastItem

func (m *Model) LastItem() int

func (*Model) NextItem

func (m *Model) NextItem() int

func (*Model) PrevItem

func (m *Model) PrevItem() int

func (*Model) ResetCurrItem

func (m *Model) ResetCurrItem()

func (*Model) SetNumItems

func (m *Model) SetNumItems(numItems int)

func (*Model) SetSize

func (m *Model) SetSize(width int, height int)

func (*Model) SyncViewPort

func (m *Model) SyncViewPort(content string)

func (*Model) View

func (m *Model) View() string

Jump to

Keyboard shortcuts

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