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

Function Get

window/window.go:24–30  ·  view source on GitHub ↗

Get returns the IWindow singleton.

()

Source from the content-addressed store, hash-verified

22
23// Get returns the IWindow singleton.
24func Get() IWindow {
25 // Return singleton if already created
26 if win != nil {
27 return win
28 }
29 panic(fmt.Errorf("need to call window.Init() first"))
30}
31
32// IWindow is the interface for all windows
33type IWindow interface {

Callers 13

winSizeMethod · 0.92
AppFunction · 0.92
AppFunction · 0.92
onMouseMethod · 0.92
onCursorMethod · 0.92
onCursorMethod · 0.92
newWindowTitleFunction · 0.92
onCursorMethod · 0.92
onCursorPosMethod · 0.92
onMouseMethod · 0.92
onCursorMethod · 0.92
onCursorMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected