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

Method GetTopAppBar

core/bars.go:121–127  ·  view source on GitHub ↗

GetTopAppBar returns the TopAppBar Toolbar if it exists, nil otherwise.

()

Source from the content-addressed store, hash-verified

119
120// GetTopAppBar returns the TopAppBar Toolbar if it exists, nil otherwise.
121func (sc *Scene) GetTopAppBar() *Toolbar {
122 tb := sc.GetBar(styles.Top)
123 if tb == nil {
124 return nil
125 }
126 return tree.ChildByType[*Toolbar](tb)
127}
128
129// inheritBarsWidget inherits Bar functions based on a source widget
130// (e.g., Context of dialog)

Callers

nothing calls this directly

Calls 1

GetBarMethod · 0.95

Tested by

no test coverage detected