MCPcopy
hub / github.com/mum4k/termdash / drawScrollDown

Method drawScrollDown

widgets/treeview/treeview.go:586–591  ·  view source on GitHub ↗

drawScrollDown draws the scroll down indicator.

(cvs *canvas.Canvas)

Source from the content-addressed store, hash-verified

584
585// drawScrollDown draws the scroll down indicator.
586func (tv *TreeView) drawScrollDown(cvs *canvas.Canvas) error {
587 if _, err := cvs.SetCell(image.Point{X: 0, Y: cvs.Area().Dy() - 1}, '↓', cell.FgColor(cell.ColorWhite)); err != nil {
588 return err
589 }
590 return nil
591}
592
593// drawLabel draws the label of a node at the specified position with given foreground and background colors.
594func (tv *TreeView) drawLabel(cvs *canvas.Canvas, label string, x, y int, fgColor, bgColor cell.Color) error {

Callers 1

DrawMethod · 0.95

Calls 3

FgColorFunction · 0.92
SetCellMethod · 0.65
AreaMethod · 0.45

Tested by

no test coverage detected