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

Method waitNoEvents

core/testing.go:69–78  ·  view source on GitHub ↗

waitNoEvents waits for all events to be handled and does any rendering of the body necessary.

()

Source from the content-addressed store, hash-verified

67// waitNoEvents waits for all events to be handled and does any rendering
68// of the body necessary.
69func (b *Body) waitNoEvents() {
70 rw := b.Scene.RenderWindow()
71 rw.noEventsChan = make(chan struct{})
72 <-rw.noEventsChan
73 rw.noEventsChan = nil
74
75 b.AsyncLock()
76 b.doNeedsRender()
77 b.AsyncUnlock()
78}
79
80// assertPixels asserts that [Scene.Pixels] is equivalent
81// to the image stored at the given filename in the testdata directory,

Callers 2

AssertRenderMethod · 0.95
AssertRenderScreenMethod · 0.95

Calls 4

AsyncLockMethod · 0.80
doNeedsRenderMethod · 0.80
AsyncUnlockMethod · 0.80
RenderWindowMethod · 0.45

Tested by

no test coverage detected