Merge pull request #292 from mikeschinkel/box_gettitle

Added a GetTitle() method to Box
This commit is contained in:
rivo 2019-12-29 17:56:09 +01:00 committed by GitHub
commit 1ee8d9874d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

5
box.go
View File

@ -226,6 +226,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