Add GetTitle() method to Box.

This commit is contained in:
Mike Schinkel 2019-06-04 17:14:24 -04:00
parent 384f577a62
commit 87c5125144
1 changed files with 5 additions and 0 deletions

5
box.go
View File

@ -218,6 +218,11 @@ func (b *Box) SetTitle(title string) *Box {
return b
}
// GetTitle returns the box's current title.
func (b *Box) GetTitle() string {
return b.title
}
// SetTitleColor sets the box's title color.
func (b *Box) SetTitleColor(color tcell.Color) *Box {
b.titleColor = color