XPixels returns the x coordinate of the *WindowBase, relative to the screen for RootWidgets like *MainWindow or *Dialog and relative to the parent for child Windows.
()
| 1697 | // RootWidgets like *MainWindow or *Dialog and relative to the parent for |
| 1698 | // child Windows. |
| 1699 | func (wb *WindowBase) XPixels() int { |
| 1700 | return wb.window.BoundsPixels().X |
| 1701 | } |
| 1702 | |
| 1703 | // SetX sets the x coordinate of the *WindowBase, relative to the screen for |
| 1704 | // RootWidgets like *MainWindow or *Dialog and relative to the parent for |