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

Method XPixels

window.go:1699–1701  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

1697// RootWidgets like *MainWindow or *Dialog and relative to the parent for
1698// child Windows.
1699func (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

Callers 1

XMethod · 0.95

Calls 1

BoundsPixelsMethod · 0.65

Tested by

no test coverage detected