Add SetOverflow to Label

This commit is contained in:
Sasha Koshka 2024-08-29 17:06:38 -04:00
parent 2727972c30
commit c1cf6edd8e

View File

@ -58,3 +58,8 @@ func (this *Label) OnDotChange (callback func ()) event.Cookie {
func (this *Label) SetAlign (x, y tomo.Align) { func (this *Label) SetAlign (x, y tomo.Align) {
this.box.SetAttr(tomo.AAlign(x, y)) this.box.SetAttr(tomo.AAlign(x, y))
} }
// SetOverflow sets the X and Y overflow of the label.
func (this *Label) SetOverflow (x, y bool) {
this.box.SetAttr(tomo.AOverflow(x, y))
}