Chagned Checkbox.OnClicked() to Checkbox.OnToggled(). The code restructure will allow this.

This commit is contained in:
Pietro Gagliardi 2014-08-03 09:12:39 -04:00
parent d018953d7e
commit ac5c577507
1 changed files with 2 additions and 3 deletions

View File

@ -23,9 +23,8 @@ func NewButton(text string) Button {
type Checkbox interface {
Control
// OnClicked sets the event handler for when the Checkbox is clicked (to change its toggle state).
// TODO change to OnToggled() or OnChecked()?
OnClicked(func())
// OnToggled sets the event handler for when the Checkbox is toggled.
OnToggled(func())
// Text and SetText get and set the Checkbox's label text.
Text() string