From c1cf6edd8ec8f1ca0276ebefb3a77eebec94a5d2 Mon Sep 17 00:00:00 2001 From: "sashakoshka@tebibyte.media" Date: Thu, 29 Aug 2024 17:06:38 -0400 Subject: [PATCH] Add SetOverflow to Label --- label.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/label.go b/label.go index 6324ac1..20d5f56 100644 --- a/label.go +++ b/label.go @@ -58,3 +58,8 @@ func (this *Label) OnDotChange (callback func ()) event.Cookie { func (this *Label) SetAlign (x, y tomo.Align) { 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)) +}