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

Method Maker

tree/plan.go:76–78  ·  view source on GitHub ↗

Maker adds a new function to [NodeBase.Makers.Normal], which are called in sequential ascending order in [NodeBase.Make] to make the plan for how the node's children should be configured.

(maker func(p *Plan))

Source from the content-addressed store, hash-verified

74// ascending order in [NodeBase.Make] to make the plan for how the node's children
75// should be configured.
76func (nb *NodeBase) Maker(maker func(p *Plan)) {
77 nb.Makers.Normal = append(nb.Makers.Normal, maker)
78}
79
80// FirstMaker adds a new function to [NodeBase.Makers.First], which are called in sequential
81// ascending order in [NodeBase.Make] to make the plan for how the node's children

Callers 15

InitMethod · 0.80
InitMethod · 0.80
NewSubPlotFunction · 0.80
InitMethod · 0.80
MakeHeaderMethod · 0.80
InitMethod · 0.80
InitMethod · 0.80
InitMethod · 0.80
InitMethod · 0.80
makeHeaderMethod · 0.80
InitMethod · 0.80
InitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected