feat(box): Add `GetBorder`

This commit is contained in:
Andreas Bieber 2020-09-16 13:26:12 +02:00
parent 186ebd7dd6
commit 2eac84df0b
1 changed files with 8 additions and 0 deletions

8
box.go
View File

@ -313,6 +313,14 @@ func (b *Box) SetBackgroundTransparent(transparent bool) *Box {
return b
}
// GetBorder returns a value indicating whether the box have a border
// or not.
func (b *Box) GetBorder() bool {
b.l.RLock()
defer b.l.RUnlock()
return b.border
}
// SetBorder sets the flag indicating whether or not the box should have a
// border.
func (b *Box) SetBorder(show bool) *Box {