MCPcopy Index your code
hub / github.com/lxn/walk / SetBounds

Method SetBounds

window.go:1408–1410  ·  view source on GitHub ↗

SetBounds sets the outer bounding box rectangle of the *WindowBase, including decorations. For a Form, like *MainWindow or *Dialog, the rectangle is in screen coordinates, for a child Window the coordinates are relative to its parent.

(bounds Rectangle)

Source from the content-addressed store, hash-verified

1406// For a Form, like *MainWindow or *Dialog, the rectangle is in screen
1407// coordinates, for a child Window the coordinates are relative to its parent.
1408func (wb *WindowBase) SetBounds(bounds Rectangle) error {
1409 return wb.SetBoundsPixels(wb.RectangleFrom96DPI(bounds))
1410}
1411
1412// BoundsPixels returns the outer bounding box rectangle of the *WindowBase, including
1413// decorations.

Callers

nothing calls this directly

Calls 2

SetBoundsPixelsMethod · 0.95
RectangleFrom96DPIMethod · 0.95

Tested by

no test coverage detected