diff options
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) } |
