Add GetTitle() method to Box.

pull/292/head
Mike Schinkel 5 years ago
parent 384f577a62
commit 87c5125144

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

Loading…
Cancel
Save