Browse Source

Merge pull request #292 from mikeschinkel/box_gettitle

Added a GetTitle() method to Box
tablepad
rivo 3 years ago committed by GitHub
parent
commit
1ee8d9874d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      box.go

5
box.go

@ -226,6 +226,11 @@ func (b *Box) SetTitle(title string) *Box { @@ -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