pull/860/merge
Chris 1 month ago committed by GitHub
commit 7cd69f7d42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -82,6 +82,13 @@ func NewBox() *Box {
return b
}
// SetDontClear sets whether the draw function
// clears the bg with defined color
func (b *Box) SetDontClear(dontClear bool) *Box {
b.dontClear = dontClear
return b
}
// SetBorderPadding sets the size of the borders around the box content.
func (b *Box) SetBorderPadding(top, bottom, left, right int) *Box {
b.paddingTop, b.paddingBottom, b.paddingLeft, b.paddingRight = top, bottom, left, right

Loading…
Cancel
Save