mirror of https://github.com/rivo/tview.git
Added getters for common Box attributes. Resolves #427
This commit is contained in:
parent
ca37f83cb2
commit
285468943b
15
box.go
15
box.go
|
@ -280,6 +280,21 @@ func (b *Box) SetBorderAttributes(attr tcell.AttrMask) *Box {
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetBorderAttributes returns the border's style attributes.
|
||||||
|
func (b *Box) GetBorderAttributes() tcell.AttrMask {
|
||||||
|
return b.borderAttributes
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetBorderColor returns the box's border color.
|
||||||
|
func (b *Box) GetBorderColor() tcell.Color {
|
||||||
|
return b.borderColor
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetBackgroundColor returns the box's background color.
|
||||||
|
func (b *Box) GetBackgroundColor() tcell.Color {
|
||||||
|
return b.backgroundColor
|
||||||
|
}
|
||||||
|
|
||||||
// SetTitle sets the box's title.
|
// SetTitle sets the box's title.
|
||||||
func (b *Box) SetTitle(title string) *Box {
|
func (b *Box) SetTitle(title string) *Box {
|
||||||
b.title = title
|
b.title = title
|
||||||
|
|
Loading…
Reference in New Issue