mirror of
https://github.com/rivo/tview.git
synced 2025-04-26 13:49:06 +08:00
Merge bcc76efaa54f8d017096e65aa774110f864c2648 into c76f7879f592d17e9e68a1d795a85faae6cb7414
This commit is contained in:
commit
668628c4fa
7
box.go
7
box.go
@ -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…
x
Reference in New Issue
Block a user