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

Method closeReq

core/renderwindow.go:331–336  ·  view source on GitHub ↗

closeReq requests that the window be closed, which could be rejected. It firsts unlocks and then locks the [renderContext] to prevent deadlocks. If this is called asynchronously outside of the main event loop, [renderWindow.SystemWin.closeReq] should be called directly instead.

()

Source from the content-addressed store, hash-verified

329// If this is called asynchronously outside of the main event loop,
330// [renderWindow.SystemWin.closeReq] should be called directly instead.
331func (w *renderWindow) closeReq() {
332 rc := w.renderContext()
333 rc.unlock()
334 w.SystemWindow.CloseReq()
335 rc.lock()
336}
337
338// closed frees any resources after the window has been closed.
339func (w *renderWindow) closed() {

Callers 3

CloseMethod · 0.80
makeStandardAppBarFunction · 0.80
standardOverflowMenuMethod · 0.80

Calls 4

renderContextMethod · 0.95
unlockMethod · 0.80
lockMethod · 0.80
CloseReqMethod · 0.65

Tested by

no test coverage detected