SelectAll selects all items in the tree.
()
| 725 | |
| 726 | // SelectAll selects all items in the tree. |
| 727 | func (tr *Tree) SelectAll() { |
| 728 | if tr.Scene == nil { |
| 729 | return |
| 730 | } |
| 731 | tr.UnselectAll() |
| 732 | nn := tr.root |
| 733 | nn.Select() |
| 734 | for nn != nil { |
| 735 | nn = nn.moveDown(events.SelectQuiet) |
| 736 | } |
| 737 | tr.NeedsRender() |
| 738 | } |
| 739 | |
| 740 | // selectUpdate updates selection to include this node, |
| 741 | // using selectmode from mouse event (ExtendContinuous, ExtendOne). |
no test coverage detected