summaryrefslogtreecommitdiff
path: root/redo/window.go
diff options
context:
space:
mode:
Diffstat (limited to 'redo/window.go')
-rw-r--r--redo/window.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/redo/window.go b/redo/window.go
index 176239b..27160c2 100644
--- a/redo/window.go
+++ b/redo/window.go
@@ -22,11 +22,11 @@ type Window interface {
// Attempting to use a Window after it has been closed results in undefined behavior.
Close() *Request
- // OnClosing registers an event handler that is triggered when the user clicks the Window's close button.
+ // OnClosing creates a Request to register an event handler that is triggered when the user clicks the Window's close button.
// On systems where whole applications own windows, OnClosing is also triggered when the user asks to close the application.
// If this handler returns true, the Window is closed as defined by Close above.
// If this handler returns false, the Window is not closed.
- OnClosing(func(c Doer) bool)
+ OnClosing(func(c Doer) bool) *Request
// TODO SetSize (TODO remove?)
// TODO Center