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

Method SetSize

system/window.go:83–83  ·  view source on GitHub ↗

SetSize sets the size of the window, in actual pixel units (i.e., the same units as returned by Size()) Divides by DevPixRatio before calling SetWinSize.

(sz image.Point)

Source from the content-addressed store, hash-verified

81 // (i.e., the same units as returned by Size())
82 // Divides by DevPixRatio before calling SetWinSize.
83 SetSize(sz image.Point)
84
85 // SetPos sets the position of the window, in OS window manager
86 // coordinates, which may be different from Size() coordinates

Callers 15

SetSizeMethod · 0.65
ConfigGrabMethod · 0.65
ReConfigMethod · 0.65
ReConfigSwapchainMethod · 0.65
AcquireNextImageMethod · 0.65
runWindowMethod · 0.65
NewOffscreenSceneFunction · 0.65
SetSizeMethod · 0.65
ConfigFrameMethod · 0.65
RenderOffNodeMethod · 0.65
InitLibShapeMethod · 0.65
ConfigBodyShapeMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected