diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-07 16:51:17 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-07 16:51:17 -0400 |
| commit | 0c57837676eba65696a1e8175ff0b59ad1e00c37 (patch) | |
| tree | 3e6f5ca235547450671180ee3bc339814282c5ee /redo/controls.go | |
| parent | c0c38ac8f5ded52f0db925ca7ca4bc6efedcb648 (diff) | |
Made event handler setters return a Request, implemented stubs on GTK+ so I can build a test, and made documentation consistent.
Diffstat (limited to 'redo/controls.go')
| -rw-r--r-- | redo/controls.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/redo/controls.go b/redo/controls.go index 3c750cb..bc4f823 100644 --- a/redo/controls.go +++ b/redo/controls.go @@ -15,15 +15,15 @@ type Control interface { type Button interface { Control - // OnClicked sets the event handler for when the Button is clicked. - OnClicked(func(d Doer)) + // OnClicked creates a Request to set the event handler for when the Button is clicked. + OnClicked(func(d Doer)) *Request - // Text and SetText are Requests that get and set the Button's label text. + // Text and SetText creates a Request that get and set the Button's label text. Text() *Request SetText(text string) *Request } -// NewButton returns a Request to create a new Button with the given label text. +// NewButton creates a Request to create a new Button with the given label text. func NewButton(text string) *Request { return newButton(text) } |
