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

Method OnAdd

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

OnAdd is called when the node is added to a parent. It will be called only once in the lifetime of the node, unless the node is moved. It will not be called on root nodes, as they are never added to a parent. It does nothing by default, but it can be implemented by higher-level types that want to do

()

Source from the content-addressed store, hash-verified

44 // It does nothing by default, but it can be implemented
45 // by higher-level types that want to do something.
46 OnAdd()
47
48 // Destroy recursively deletes and destroys the node, all of its children,
49 // and all of its children's children, etc. Node types can implement this

Callers 4

OnAddMethod · 0.65
OnAddMethod · 0.65
OnAddMethod · 0.65
SetParentFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected