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

Method Size

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

Size returns the current size of the window, in raw underlying dots / pixels. This includes any high DPI factors that may not be used in OS window sizing (see WinSize for that size).

()

Source from the content-addressed store, hash-verified

58 // This includes any high DPI factors that may not be used in OS window sizing
59 // (see WinSize for that size).
60 Size() image.Point
61
62 // WinSize returns the current size of the window, in OS-specific window manager
63 // units that may not include any high DPI factors.

Callers 15

findAllFunction · 0.65
SetFromBoxMethod · 0.65
SetRectMethod · 0.65
TestBackgroundColorFunction · 0.65
TestBackgroundImageFunction · 0.65
TestBoxModelFunction · 0.65
TestBoxShadowFunction · 0.65
TestBorderStyleFunction · 0.65
DrawStandardBoxMethod · 0.65
boundsEncroachParentMethod · 0.65
NewContextFromImageFunction · 0.65
NewContextFromRGBAFunction · 0.65

Calls

no outgoing calls

Tested by 9

TestBackgroundColorFunction · 0.52
TestBackgroundImageFunction · 0.52
TestBoxModelFunction · 0.52
TestBoxShadowFunction · 0.52
TestBorderStyleFunction · 0.52
RunShadowBlurFunction · 0.52
TestColorAtFunction · 0.52
TestRenderLinearFunction · 0.52
TestRenderRadialFunction · 0.52