SetXPixels sets the x coordinate of the *WindowBase, relative to the screen for RootWidgets like *MainWindow or *Dialog and relative to the parent for child Windows.
(value int)
| 1711 | // RootWidgets like *MainWindow or *Dialog and relative to the parent for |
| 1712 | // child Windows. |
| 1713 | func (wb *WindowBase) SetXPixels(value int) error { |
| 1714 | bounds := wb.window.BoundsPixels() |
| 1715 | bounds.X = value |
| 1716 | |
| 1717 | return wb.SetBoundsPixels(bounds) |
| 1718 | } |
| 1719 | |
| 1720 | // Y returns the y coordinate of the *WindowBase, relative to the screen for |
| 1721 | // RootWidgets like *MainWindow or *Dialog and relative to the parent for |
no test coverage detected