Close#
func (content *ContentWindow) Close()Close force-closes the window, as application teardown does. RequestClose is the ordinary UI action and honors unsaved-content confirmation.
type ContentWindow struct {
// contains filtered or unexported fields
}ContentWindow is an independent native window for application-owned content. It uses normal system chrome on Windows, macOS and Linux. Config supplies the content and close policy; the helper owns UI-thread delivery and lifetime. It is suitable for document viewers, inspectors and detached tool panels.
Close#func (content *ContentWindow) Close()Close force-closes the window, as application teardown does. RequestClose is the ordinary UI action and honors unsaved-content confirmation.
Closed#func (content *ContentWindow) Closed() boolInvalidate#func (content *ContentWindow) Invalidate()Post#func (content *ContentWindow) Post(update func()) boolPost queues an update for the window thread. It rejects updates after native teardown or while the bounded queue is full, so a slow window cannot retain unbounded background results or resurrect closed content.
RequestClose#func (content *ContentWindow) RequestClose()RequestClose must run on the window thread; the application's close policy may call allow synchronously or after its own confirmation UI.
Show#func (content *ContentWindow) Show()