LabelSwatch, LabelCheckbox changing their labels
This commit is contained in:
parent
f0c334c278
commit
6f8d5cc426
@ -47,6 +47,11 @@ func (this *LabelCheckbox) SetFocused (focused bool) {
|
||||
this.checkbox.SetFocused(focused)
|
||||
}
|
||||
|
||||
// SetText sets the text label of the checkbox.
|
||||
func (this *LabelCheckbox) SetText (text string) {
|
||||
this.label.SetText(text)
|
||||
}
|
||||
|
||||
// Value returns the value of the checkbox.
|
||||
func (this *LabelCheckbox) Value () bool {
|
||||
return this.checkbox.Value()
|
||||
|
@ -49,6 +49,11 @@ func (this *LabelSwatch) SetFocused (focused bool) {
|
||||
this.swatch.SetFocused(focused)
|
||||
}
|
||||
|
||||
// SetText sets the text label of the swatch.
|
||||
func (this *LabelSwatch) SetText (text string) {
|
||||
this.label.SetText(text)
|
||||
}
|
||||
|
||||
// Value returns the color of the swatch.
|
||||
func (this *LabelSwatch) Value () color.Color {
|
||||
return this.swatch.Value()
|
||||
|
Loading…
Reference in New Issue
Block a user