Documentation
¶
Index ¶
- type Box
- func (box Box) Center() XY
- func (box Box) HorDiv(n uint) BoxIter
- func (box Box) HorPad(left, right uint) Box
- func (box Box) Move(hor, vert int) Box
- func (box Box) MoveXY(nw XY) Box
- func (box *Box) NE() XY
- func (box *Box) NW() XY
- func (box Box) Pad(pad uint) Box
- func (box Box) Resize(height, width uint) Box
- func (box *Box) SE() XY
- func (box *Box) SW() XY
- func (box Box) VertDiv(n uint) BoxIter
- func (box Box) VertPad(top, bottom uint) Box
- type BoxIter
- type CmdBox
- type Header
- type PadBox
- func (pb *PadBox) BoundBuffer(x, y int) XY
- func (pb *PadBox) BoundBufferXY(xy XY) XY
- func (pb *PadBox) Delete() error
- func (pb *PadBox) MoveCursor(x, y uint) XY
- func (pb *PadBox) MoveCursorXY(xy XY) XY
- func (pb *PadBox) NoutRefresh()
- func (pb *PadBox) Offset(offset XY)
- func (pb *PadBox) Refresh()
- func (pb *PadBox) Resize(box Box)
- func (pb *PadBox) ResizeBuffer(height, width uint)
- func (pb *PadBox) Scroll(x, y int)
- type RefPrinter
- type UI
- type VersionMenu
- type VersionPad
- func (vsrp *VersionPad) Delete()
- func (vsrp *VersionPad) GetChar() gc.Key
- func (vsrp *VersionPad) GotoCursor(y, x uint)
- func (vsrp *VersionPad) LoadRef(ref *bib.Ref)
- func (vsrp *VersionPad) MoveCursor(yoffset, xoffset int)
- func (vsrp *VersionPad) NoutRefresh()
- func (vsrp *VersionPad) RefLoaded() *bib.Ref
- func (vsrp *VersionPad) Refresh()
- func (vsrp *VersionPad) Resize(box Box, padding uint)
- func (vsrp *VersionPad) Scroll(offset int)
- func (vsrp *VersionPad) SetVersion(vsr *bib.Version)
- type WinBox
- type WordIter
- type XY
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdBox ¶
type CmdBox struct { WinBox // contains filtered or unexported fields }
CmdBox docs here.
type Header ¶
type Header struct { WinBox // contains filtered or unexported fields }
Header docs here.
type RefPrinter ¶
type RefPrinter struct {
// contains filtered or unexported fields
}
RefPrinter docs here.
func NewRefPrinter ¶
NewRefPrinter docs here.
func (*RefPrinter) LinesRequired ¶
func (rp *RefPrinter) LinesRequired() uint
LinesRequired docs here.
type UI ¶
UI docs here.
func (*UI) Close ¶
func (ui *UI) Close()
Close should be deferred before initiating the UI, so that in all cases it is ended before any error logging or such, to avoid terminal glitches.
type VersionMenu ¶
type VersionMenu struct { WinBox // contains filtered or unexported fields }
VersionMenu docs here.
func NewVersionMenu ¶
func NewVersionMenu(box Box, vsrs ...*bib.Version) (vmenu VersionMenu, err error)
NewVersionMenu docs here.
type VersionPad ¶
type VersionPad struct { WinBox // contains filtered or unexported fields }
VersionPad docs here.
func NewVersionPad ¶
NewVersionPad docs here.
func (*VersionPad) MoveCursor ¶
func (vsrp *VersionPad) MoveCursor(yoffset, xoffset int)
MoveCursor docs here.
func (*VersionPad) SetVersion ¶
func (vsrp *VersionPad) SetVersion(vsr *bib.Version)
SetVersion docs here.
type WordIter ¶
type WordIter struct {
// contains filtered or unexported fields
}
WordIter docs here.
Click to show internal directories.
Click to hide internal directories.