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

Method YPixels

window.go:1730–1732  ·  view source on GitHub ↗

YPixels returns the y 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

1728// RootWidgets like *MainWindow or *Dialog and relative to the parent for
1729// child Windows.
1730func (wb *WindowBase) YPixels() int {
1731 return wb.window.BoundsPixels().Y
1732}
1733
1734// SetY sets the y coordinate of the *WindowBase, relative to the screen for
1735// RootWidgets like *MainWindow or *Dialog and relative to the parent for

Callers 1

YMethod · 0.95

Calls 1

BoundsPixelsMethod · 0.65

Tested by

no test coverage detected