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

Method SetMinMaxSize

widget.go:268–274  ·  view source on GitHub ↗

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

(min, max Size)

Source from the content-addressed store, hash-verified

266//
267// Use walk.Size{} to make the respective limit be ignored.
268func (wb *WidgetBase) SetMinMaxSize(min, max Size) (err error) {
269 err = wb.WindowBase.SetMinMaxSize(min, max)
270
271 wb.RequestLayout()
272
273 return
274}
275
276// AlwaysConsumeSpace returns if the Widget should consume space even if it is
277// not visible.

Callers

nothing calls this directly

Calls 2

SetMinMaxSizeMethod · 0.65
RequestLayoutMethod · 0.65

Tested by

no test coverage detected