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

Method handleWidgetContextMenu

core/menu.go:164–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162}
163
164func (wb *WidgetBase) handleWidgetContextMenu() {
165 wb.On(events.ContextMenu, func(e events.Event) {
166 wi := wb.This.(Widget)
167 wi.ShowContextMenu(e)
168 })
169}
170
171func (wb *WidgetBase) ShowContextMenu(e events.Event) {
172 e.SetHandled() // always

Callers 1

InitMethod · 0.95

Calls 2

OnMethod · 0.95
ShowContextMenuMethod · 0.65

Tested by

no test coverage detected