drawScrollDown draws the scroll down indicator.
(cvs *canvas.Canvas)
| 584 | |
| 585 | // drawScrollDown draws the scroll down indicator. |
| 586 | func (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. |
| 594 | func (tv *TreeView) drawLabel(cvs *canvas.Canvas, label string, x, y int, fgColor, bgColor cell.Color) error { |