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

Method AddAppBar

core/bars.go:194–196  ·  view source on GitHub ↗

AddAppBar adds plan maker function(s) for the top app bar, which can be used to add items to it.

(m ...func(p *tree.Plan))

Source from the content-addressed store, hash-verified

192
193// AddAppBar adds plan maker function(s) for the top app bar, which can be used to add items to it.
194func (bd *Body) AddAppBar(m ...func(p *tree.Plan)) {
195 bd.Scene.AppBars = append(bd.Scene.AppBars, m...)
196}
197
198// GetTopAppBar returns the TopAppBar Toolbar if it exists, nil otherwise.
199func (bd *Body) GetTopAppBar() *Toolbar {

Callers 15

TestTablePlotEditorFunction · 0.95
TestSlicePlotEditorFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
guiFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
DiffEditorDialogFunction · 0.95
NewBrowserWindowFunction · 0.95
makeColumnsMethod · 0.80
MakeToolbarMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestTablePlotEditorFunction · 0.76
TestSlicePlotEditorFunction · 0.76