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

Method AddOverflowMenu

core/toolbar.go:198–200  ·  view source on GitHub ↗

AddOverflowMenu adds the given menu function to the overflow menu list. These functions are called in reverse order such that the last added function is called first when constructing the menu.

(fun func(m *Scene))

Source from the content-addressed store, hash-verified

196// These functions are called in reverse order such that the last added function
197// is called first when constructing the menu.
198func (tb *Toolbar) AddOverflowMenu(fun func(m *Scene)) {
199 tb.OverflowMenus = append(tb.OverflowMenus, fun)
200}
201
202// ToolbarStyles styles the given widget to have standard toolbar styling.
203func ToolbarStyles(w Widget) {

Callers 2

makeAppBarFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected