MCPcopy Create free account
hub / github.com/lxn/walk / SetMinMaxSizePixels

Method SetMinMaxSizePixels

window.go:1504–1507  ·  view source on GitHub ↗

SetMinMaxSizePixels sets the minimum and maximum outer size of the *WindowBase, including decorations. Use walk.Size{} to make the respective limit be ignored.

(min, max Size)

Source from the content-addressed store, hash-verified

1502//
1503// Use walk.Size{} to make the respective limit be ignored.
1504func (wb *WindowBase) SetMinMaxSizePixels(min, max Size) error {
1505 dpi := wb.DPI()
1506 return wb.SetMinMaxSize(SizeTo96DPI(min, dpi), SizeTo96DPI(max, dpi))
1507}
1508
1509type fontInfoAndDPI struct {
1510 fontInfo

Callers

nothing calls this directly

Calls 3

DPIMethod · 0.95
SetMinMaxSizeMethod · 0.95
SizeTo96DPIFunction · 0.85

Tested by

no test coverage detected