return i
}
-func (t *Tree) SetBounds(ui *Ui, x0, y0, x1, y1 int) {
+func (t *Tree) setBounds(ui *Ui, x0, y0, x1, y1 int) {
t.x0 = x0
t.y0 = y0
t.x1 = x1
return lines
}
-func (t *Tree) Draw(ui *Ui) {
+func (t *Tree) draw(ui *Ui) {
if t.lines == nil {
t.Rebuild()
}
}
}
-func (t *Tree) SetActive(ui *Ui, active bool) {
+func (t *Tree) setActive(ui *Ui, active bool) {
t.active = active
}
-func (t *Tree) KeyEvent(ui *Ui, mod Modifier, key Key) {
+func (t *Tree) keyEvent(ui *Ui, mod Modifier, key Key) {
switch key {
case KeyArrowUp:
t.activeLine = bounded(t.activeLine-1, 0, len(t.lines)-1)
ui.Refresh()
}
-func (t *Tree) CharacterEvent(ui *Ui, ch rune) {
+func (t *Tree) characterEvent(ui *Ui, ch rune) {
}