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

Method rootIsReadOnly

core/tree.go:495–500  ·  view source on GitHub ↗

rootIsReadOnly returns the ReadOnly status of the root node, which is what controls the functional inactivity of the tree if individual nodes are ReadOnly that only affects display typically.

()

Source from the content-addressed store, hash-verified

493// which is what controls the functional inactivity of the tree
494// if individual nodes are ReadOnly that only affects display typically.
495func (tr *Tree) rootIsReadOnly() bool {
496 if tr.root == nil {
497 return true
498 }
499 return tr.root.IsReadOnly()
500}
501
502func (tr *Tree) Style() {
503 if !tr.HasChildren() {

Callers 2

InitMethod · 0.95
contextMenuMethod · 0.95

Calls 1

IsReadOnlyMethod · 0.45

Tested by

no test coverage detected