Merge pull request #292 from mikeschinkel/box_gettitle
Added a GetTitle() method to Box
This commit is contained in:
commit
1ee8d9874d
1 changed files with 5 additions and 0 deletions
5
box.go
5
box.go
|
@ -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…
Reference in a new issue