From 87c5125144a73feb7059d1a3d5627c6d97c5e95d Mon Sep 17 00:00:00 2001 From: Mike Schinkel Date: Tue, 4 Jun 2019 17:14:24 -0400 Subject: [PATCH] Add GetTitle() method to Box. --- box.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/box.go b/box.go index 6bcd6d2..3e1ab2d 100644 --- a/box.go +++ b/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