MCPcopy
hub / github.com/lxn/walk / SetXPixels

Method SetXPixels

window.go:1713–1718  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

SetXMethod · 0.95

Calls 2

SetBoundsPixelsMethod · 0.95
BoundsPixelsMethod · 0.65

Tested by

no test coverage detected