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

Method Init

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

Init is called when the node is first initialized. It is called before the node is added to the tree, so it will not have any parents or siblings. It will be called only once in the lifetime of the node. It does nothing by default, but it can be implemented by higher-level types that want to do some

()

Source from the content-addressed store, hash-verified

36 // be done, like adding Stylers, Makers, and event handlers
37 // to widgets in Cogent Core.
38 Init()
39
40 // OnAdd is called when the node is added to a parent.
41 // It will be called only once in the lifetime of the node,

Callers 15

InitMethod · 0.65
InitMethod · 0.65
InitMethod · 0.65
SetHTMLNoPreMethod · 0.65
SetHTMLPreMethod · 0.65
NewContextFunction · 0.65
NewContextFromImageFunction · 0.65
NewContextFromRGBAFunction · 0.65
InitMethod · 0.65
InitFunction · 0.65
InitGraphicsMethod · 0.65
InitComputeMethod · 0.65

Calls

no outgoing calls

Tested by 2

tstFunction · 0.52
Init4Method · 0.52