MCPcopy Create free account
hub / github.com/cogentcore/core / SelectAll

Method SelectAll

core/tree.go:727–738  ·  view source on GitHub ↗

SelectAll selects all items in the tree.

()

Source from the content-addressed store, hash-verified

725
726// SelectAll selects all items in the tree.
727func (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).

Callers 1

InitMethod · 0.95

Calls 4

UnselectAllMethod · 0.95
SelectMethod · 0.80
NeedsRenderMethod · 0.80
moveDownMethod · 0.45

Tested by

no test coverage detected