scrollbar

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// The character to display for the bar, defaults to '▐'
	Character vaxis.Character
	Style     vaxis.Style

	// Number of items in the scrolling area
	TotalHeight int
	// Number of items in the visible area
	ViewHeight int
	// Index of the item at the top of the visible area
	Top int
}

func (*Model) Draw

func (m *Model) Draw(win vaxis.Window)

Jump to

Keyboard shortcuts

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