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

Method HasChildren

tree/nodebase.go:190–192  ·  view source on GitHub ↗

Children: HasChildren returns whether this node has any children.

()

Source from the content-addressed store, hash-verified

188
189// HasChildren returns whether this node has any children.
190func (n *NodeBase) HasChildren() bool {
191 return len(n.Children) > 0
192}
193
194// NumChildren returns the number of children this node has.
195func (n *NodeBase) NumChildren() int {

Callers 15

RenameFileMethod · 0.45
CanOpenMethod · 0.45
newMenuSceneFunction · 0.45
NewMenuStageFunction · 0.45
PositionMethod · 0.45
syncToSrcMethod · 0.45
InitMethod · 0.45
StyleMethod · 0.45
moveDownMethod · 0.45
moveToLastChildMethod · 0.45
CanOpenMethod · 0.45
widgetNextFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected