MCPcopy
hub / github.com/lxn/walk / SetSizePixels

Method SetSizePixels

window.go:1683–1687  ·  view source on GitHub ↗

SetSizePixels sets the outer size of the *WindowBase, including decorations.

(size Size)

Source from the content-addressed store, hash-verified

1681
1682// SetSizePixels sets the outer size of the *WindowBase, including decorations.
1683func (wb *WindowBase) SetSizePixels(size Size) error {
1684 bounds := wb.window.BoundsPixels()
1685
1686 return wb.SetBoundsPixels(bounds.SetSize(size))
1687}
1688
1689// X returns the x coordinate of the *WindowBase, relative to the screen for
1690// RootWidgets like *MainWindow or *Dialog and relative to the parent for

Callers 2

SetSizeMethod · 0.95
SetClientSizePixelsMethod · 0.95

Calls 3

SetBoundsPixelsMethod · 0.95
BoundsPixelsMethod · 0.65
SetSizeMethod · 0.65

Tested by

no test coverage detected