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

Method isVisible

core/renderwindow.go:366–371  ·  view source on GitHub ↗

isVisible is the main visibility check; don't do any window updates if not visible!

()

Source from the content-addressed store, hash-verified

364
365// isVisible is the main visibility check; don't do any window updates if not visible!
366func (w *renderWindow) isVisible() bool {
367 if w == nil || w.SystemWindow == nil || w.isClosed() || w.closing || !w.SystemWindow.IsVisible() {
368 return false
369 }
370 return true
371}
372
373// goStartEventLoop starts the event processing loop for this window in a new
374// goroutine, and returns immediately. Adds to WindowWait wait group so a main

Callers 4

resizedMethod · 0.95
drawScenesMethod · 0.95
recordPrefMethod · 0.80
setCursorMethod · 0.80

Calls 2

isClosedMethod · 0.95
IsVisibleMethod · 0.65

Tested by

no test coverage detected