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

Method HasMenu

core/button.go:299–301  ·  view source on GitHub ↗

HasMenu returns true if the button has a menu that pops up when it is clicked (not that it is in a menu itself; see [ButtonMenu])

()

Source from the content-addressed store, hash-verified

297// HasMenu returns true if the button has a menu that pops up when it is clicked
298// (not that it is in a menu itself; see [ButtonMenu])
299func (bt *Button) HasMenu() bool {
300 return bt.Menu != nil
301}
302
303// openMenu opens any menu associated with this element.
304// It returns whether any menu was opened.

Callers 4

InitMethod · 0.95
openMenuMethod · 0.95
addButtonItemsFunction · 0.80
getShortcutsInMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected