Documentation
¶
Overview ¶
Package window is the rows a virtualized view of base makes: a table's, an editor's.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rows ¶
type Rows struct {
// contains filtered or unexported fields
}
Rows is the rows a virtualized view makes: those in view and a reach around them, moved only when the viewport nears the window's edge, so scrolling a little changes no rows and a scroll finds the rows of the next frames made already.
func New ¶
New is a window keeping margin rows made past the viewport's edges and making ahead rows ahead of it when it moves, at least.
func (*Rows) Span ¶
Span is the rows to make with visible rows in view of count: the last window while it covers them with half a viewport to spare, else the visible rows, a viewport and a half more ahead the way they scrolled and half a viewport behind, or as many on one side as the other end leaves.