MCPcopy
hub / github.com/go-qml/qml / Context

Method Context

qml.go:175–183  ·  view source on GitHub ↗

Context returns the engine's root context.

()

Source from the content-addressed store, hash-verified

173
174// Context returns the engine's root context.
175func (e *Engine) Context() *Context {
176 e.assertValid()
177 var ctx Context
178 ctx.engine = e
179 RunMain(func() {
180 ctx.addr = C.engineRootContext(e.addr)
181 })
182 return &ctx
183}
184
185// TODO ObjectOf is probably still worth it, but turned out unnecessary
186// for GL functionality. Test it properly before introducing it.

Callers 6

runFunction · 0.95
runFunction · 0.95
runFunction · 0.95
runFunction · 0.95
SetUpTestMethod · 0.80
TestContextSpawnMethod · 0.80

Calls 2

assertValidMethod · 0.95
RunMainFunction · 0.85

Tested by 2

SetUpTestMethod · 0.64
TestContextSpawnMethod · 0.64