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)
| 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. |
| 1408 | func (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. |
nothing calls this directly
no test coverage detected