Add SetOverflow to Label
This commit is contained in:
parent
2727972c30
commit
c1cf6edd8e
5
label.go
5
label.go
@ -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))
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user