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

Method NumChildren

tree/nodebase.go:195–197  ·  view source on GitHub ↗

NumChildren returns the number of children this node has.

()

Source from the content-addressed store, hash-verified

193
194// NumChildren returns the number of children this node has.
195func (n *NodeBase) NumChildren() int {
196 return len(n.Children)
197}
198
199// Child returns the child of this node at the given index and returns nil if
200// the index is out of range.

Callers 15

MarshalJSONMethod · 0.95
CheckScopeFunction · 0.80
applyContextMenusMethod · 0.80
SizeDownSetAllocsMethod · 0.80
positionSplitsMethod · 0.80
moveToLastChildMethod · 0.80
widgetNextSiblingFunction · 0.80
widgetLastChildPartsFunction · 0.80
InitMethod · 0.80
allItemsToChildrenMethod · 0.80
moveToOverflowMethod · 0.80
renderStripesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected