Documentation
¶
Overview ¶
Package viewport provides a scrollable view into content.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Model ¶
type Model struct {
// Height is the viewport height, usually the terminal height.
Height int
// ScrollHeight is the scrollable height.
ScrollHeight int
// ScrollY is the vertical scroll position.
ScrollY int
// ScrollBy is the number of rows or columns to scroll by.
ScrollBy int
}
Model is the viewport model.
Click to show internal directories.
Click to hide internal directories.