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

Method handleClickDismissMenu

core/button.go:321–326  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

319}
320
321func (bt *Button) handleClickDismissMenu() {
322 // note: must be called last so widgets aren't deleted when the click arrives
323 bt.OnFinal(events.Click, func(e events.Event) {
324 bt.Scene.Stage.closePopupAndBelow()
325 })
326}
327
328func (bt *Button) WidgetTooltip(pos image.Point) (string, image.Point) {
329 res := bt.Tooltip

Callers 1

newMenuSceneFunction · 0.80

Calls 2

OnFinalMethod · 0.80
closePopupAndBelowMethod · 0.80

Tested by

no test coverage detected