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

Method SetX

window.go:1706–1708  ·  view source on GitHub ↗

SetX 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

1704// RootWidgets like *MainWindow or *Dialog and relative to the parent for
1705// child Windows.
1706func (wb *WindowBase) SetX(value int) error {
1707 return wb.SetXPixels(wb.IntFrom96DPI(value))
1708}
1709
1710// SetXPixels sets the x coordinate of the *WindowBase, relative to the screen for
1711// RootWidgets like *MainWindow or *Dialog and relative to the parent for

Callers

nothing calls this directly

Calls 2

SetXPixelsMethod · 0.95
IntFrom96DPIMethod · 0.95

Tested by

no test coverage detected