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

Method AsTree

tree/node.go:27–27  ·  view source on GitHub ↗

AsTree returns the [NodeBase] of this Node. Most core tree functionality is implemented on [NodeBase].

()

Source from the content-addressed store, hash-verified

25 // AsTree returns the [NodeBase] of this Node. Most core
26 // tree functionality is implemented on [NodeBase].
27 AsTree() *NodeBase
28
29 // Init is called when the node is first initialized.
30 // It is called before the node is added to the tree,

Callers 15

addSyncNodesMethod · 0.95
pasteAtSyncMethod · 0.95
DoActMethod · 0.95
TestDownFunction · 0.95
externalNodeByPathMethod · 0.65
TestInlineContainerFunction · 0.65
TestNoInlineContainerFunction · 0.65
handleElementFunction · 0.65
InlineParentMethod · 0.65
MakeRowMethod · 0.65
InitMethod · 0.65
OpenURLMethod · 0.65

Calls

no outgoing calls

Tested by 10

TestDownFunction · 0.76
TestInlineContainerFunction · 0.52
TestNoInlineContainerFunction · 0.52
TestWidgetPrevFunction · 0.52
TestWidgetNextFunction · 0.52
TestNodeEmbedNewChildFunction · 0.52
TestNodePathFunction · 0.52
TestNodeWalkFunction · 0.52
TestNodeWalkPathFunction · 0.52
TestUpFunction · 0.52