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

Method SetWidthPixels

window.go:1767–1772  ·  view source on GitHub ↗

SetWidthPixels sets the outer width of the *WindowBase, including decorations.

(value int)

Source from the content-addressed store, hash-verified

1765
1766// SetWidthPixels sets the outer width of the *WindowBase, including decorations.
1767func (wb *WindowBase) SetWidthPixels(value int) error {
1768 bounds := wb.window.BoundsPixels()
1769 bounds.Width = value
1770
1771 return wb.SetBoundsPixels(bounds)
1772}
1773
1774// Height returns the outer height of the *WindowBase, including decorations.
1775func (wb *WindowBase) Height() int {

Callers 1

SetWidthMethod · 0.95

Calls 2

SetBoundsPixelsMethod · 0.95
BoundsPixelsMethod · 0.65

Tested by

no test coverage detected