Merge pull request #292 from mikeschinkel/box_gettitle

Added a GetTitle() method to Box
pull/383/head
rivo 5 years ago committed by GitHub
commit 1ee8d9874d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save