SetSizePixels sets the outer size of the *WindowBase, including decorations.
(size Size)
| 1681 | |
| 1682 | // SetSizePixels sets the outer size of the *WindowBase, including decorations. |
| 1683 | func (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 |
no test coverage detected