Documentation
¶
Index ¶
- type PageNavigator
- type Pager
- func (p *Pager) Draw()
- func (p *Pager) MaxScrollX() int
- func (p *Pager) MaxScrollY() int
- func (p *Pager) PageDown() bool
- func (p *Pager) PageUp() bool
- func (p *Pager) Pages() int
- func (p *Pager) ScrollDown()
- func (p *Pager) ScrollLeft()
- func (p *Pager) ScrollRight()
- func (p *Pager) ScrollUp()
- func (p *Pager) SetDoc(doc parse.Cellbuf)
- func (p *Pager) SetScreen(screen tcell.Screen)
- func (p *Pager) Size() (int, int)
- func (p *Pager) ToBottom()
- func (p *Pager) ToTop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PageNavigator ¶
type PageNavigator interface {}
type Pager ¶
type Pager struct {
// contains filtered or unexported fields
}
func (*Pager) MaxScrollX ¶
maxScrollX represents the pager's maximum horizontal scroll distance.
func (*Pager) MaxScrollY ¶
maxScrollY represents the pager's maximum vertical scroll distance.
func (*Pager) PageDown ¶
pageDown pans the pager's viewport down by a full page, without exceeding the underlying cell buffer document's boundaries.
func (*Pager) PageUp ¶
pageUp pans the pager's viewport up by a full page, without exceeding the underlying cell buffer document's boundaries.
func (*Pager) Pages ¶
pages returns the number of times the pager's underlying cell buffer document can be split into viewport sized pages.
func (*Pager) ScrollDown ¶
func (p *Pager) ScrollDown()
scrollDown pans the pager's viewport down, without exceeding the underlying cell buffer document's boundaries.
func (*Pager) ScrollLeft ¶
func (p *Pager) ScrollLeft()
scrollLeft pans the pager's viewport left, without exceeding the underlying cell buffer document's boundaries.
func (*Pager) ScrollRight ¶
func (p *Pager) ScrollRight()
scrollRight pans the pager's viewport right, without exceeding the underlying cell buffer document's boundaries.
func (*Pager) ScrollUp ¶
func (p *Pager) ScrollUp()
scrollUp pans the pager's viewport up, without exceeding the underlying cell buffer document's boundaries.
func (*Pager) SetScreen ¶ added in v1.0.1
func (p *Pager) SetScreen(screen tcell.Screen)
setScreen sets the pager's screen
func (*Pager) Size ¶
size returns the width and height of the pager's underlying cell buffer document.