Fix doc comments on Label, TextInput
This commit is contained in:
parent
82cf822602
commit
d4e8847908
2
label.go
2
label.go
@ -33,7 +33,7 @@ func (this *Label) SetFocused (focused bool) {
|
|||||||
this.box.SetFocused(focused)
|
this.box.SetFocused(focused)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetText sets the text content of the heading.
|
// SetText sets the text content of the label.
|
||||||
func (this *Label) SetText (text string) {
|
func (this *Label) SetText (text string) {
|
||||||
this.box.SetText(text)
|
this.box.SetText(text)
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ func (this *TextInput) Dot () text.Dot {
|
|||||||
return this.box.Dot()
|
return this.box.Dot()
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetAlign sets the X and Y alignment of the label.
|
// SetAlign sets the X and Y alignment of the text input.
|
||||||
func (this *TextInput) SetAlign (x, y tomo.Align) {
|
func (this *TextInput) SetAlign (x, y tomo.Align) {
|
||||||
this.box.SetAttr(tomo.AAlign(x, y))
|
this.box.SetAttr(tomo.AAlign(x, y))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user