Pinned down event behavior of Windows.Close().
This commit is contained in:
parent
903f8e9b22
commit
5bc9a75f0a
|
@ -20,7 +20,8 @@ type Window interface {
|
|||
// Close creates a Request to close the Window.
|
||||
// Any Controls within the Window are destroyed, and the Window itself is also destroyed.
|
||||
// Attempting to use a Window after it has been closed results in undefined behavior.
|
||||
// TODO does this raise OnClosing or bypass it?
|
||||
// Close unconditionally closes the Window; it neither raises OnClosing nor checks for a return from OnClosing.
|
||||
// TODO make sure the above happens on GTK+ and Mac OS X; it does on Windows
|
||||
Close() *Request
|
||||
|
||||
// OnClosing creates a Request to register an event handler that is triggered when the user clicks the Window's close button.
|
||||
|
|
Loading…
Reference in New Issue