Browse Source

Add GetTitle() method to Box.

tablepad
Mike Schinkel 3 years ago
parent
commit
87c5125144
  1. 5
      box.go

5
box.go

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