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

Method SetYPixels

window.go:1744–1749  ·  view source on GitHub ↗

SetYPixels sets the y 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

1742// RootWidgets like *MainWindow or *Dialog and relative to the parent for
1743// child Windows.
1744func (wb *WindowBase) SetYPixels(value int) error {
1745 bounds := wb.window.BoundsPixels()
1746 bounds.Y = value
1747
1748 return wb.SetBoundsPixels(bounds)
1749}
1750
1751// Width returns the outer width of the *WindowBase, including decorations.
1752func (wb *WindowBase) Width() int {

Callers 1

SetYMethod · 0.95

Calls 2

SetBoundsPixelsMethod · 0.95
BoundsPixelsMethod · 0.65

Tested by

no test coverage detected