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

Method RenderWindow

core/scene.go:220–229  ·  view source on GitHub ↗

RenderWindow returns the current render window for this scene. In general it is best to go through [renderContext] instead of the window. This will be nil prior to actual rendering.

()

Source from the content-addressed store, hash-verified

218// In general it is best to go through [renderContext] instead of the window.
219// This will be nil prior to actual rendering.
220func (sc *Scene) RenderWindow() *renderWindow {
221 if sc.Stage == nil {
222 return nil
223 }
224 sm := sc.Stage.Mains
225 if sm == nil {
226 return nil
227 }
228 return sm.renderWindow
229}
230
231// fitInWindow fits Scene geometry (pos, size) into given window geom.
232// Calls resize for the new size.

Callers 9

setStageTitleMethod · 0.45
SystemEventsMethod · 0.45
handleWidgetMagnifyMethod · 0.45
addDialogPartsMethod · 0.45
SetTitleMethod · 0.45
standardOverflowMenuMethod · 0.45
waitNoEventsMethod · 0.45
TestWidgetEventManagerFunction · 0.45
InitMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestWidgetEventManagerFunction · 0.36