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
()
| 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, |
no outgoing calls