MCPcopy
hub / github.com/g3n/engine / SetModal

Method SetModal

gui/manager.go:63–68  ·  view source on GitHub ↗

SetModal sets the specified panel and its descendants to be the exclusive receivers of events.

(ipan IPanel)

Source from the content-addressed store, hash-verified

61
62// SetModal sets the specified panel and its descendants to be the exclusive receivers of events.
63func (gm *manager) SetModal(ipan IPanel) {
64
65 gm.modal = ipan
66 gm.SetKeyFocus(nil)
67 gm.SetCursorFocus(nil)
68}
69
70// SetKeyFocus sets the key-focused IDispatcher, which will exclusively receive key and char events.
71func (gm *manager) SetKeyFocus(disp core.IDispatcher) {

Callers

nothing calls this directly

Calls 2

SetKeyFocusMethod · 0.95
SetCursorFocusMethod · 0.95

Tested by

no test coverage detected