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

Method Show

form.go:561–569  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

559}
560
561func (fb *FormBase) Show() {
562 fb.proposedSize = maxSize(SizeFrom96DPI(fb.minSize96dpi, fb.DPI()), fb.SizePixels())
563
564 if p, ok := fb.window.(Persistable); ok && p.Persistent() && App().Settings() != nil {
565 p.RestoreState()
566 }
567
568 fb.window.SetVisible(true)
569}
570
571func (fb *FormBase) close() error {
572 if p, ok := fb.window.(Persistable); ok && p.Persistent() && App().Settings() != nil {

Callers

nothing calls this directly

Calls 9

maxSizeFunction · 0.85
SizeFrom96DPIFunction · 0.85
AppFunction · 0.85
SettingsMethod · 0.80
DPIMethod · 0.65
SizePixelsMethod · 0.65
PersistentMethod · 0.65
RestoreStateMethod · 0.65
SetVisibleMethod · 0.65

Tested by

no test coverage detected