Newer
Older
var goSDNAscii = ` ____ ____ _ _ _ __ _ _ _
__ _ ___/ ___|| _ \| \ | | __| | __ _ / / __ ___| |_ | |__ __| | __ _
/ _ |/ _ \___ \| | | | \| | _____ / _ |/ _ | / / _ \ / _ \ __| _____ | _ \ / _ |/ _ |
| (_| | (_) |__) | |_| | |\ | |_____| | (_| | (_| |/ /| | | | __/ |_ |_____| | | | | | (_| | (_| |
\__, |\___/____/|____/|_| \_| \__,_|\__,_/_/ |_| |_|\___|\__| |_| |_|___\__,_|\__,_|
|___/ |_____| `
//HeaderView is an application view to display the header of the application
titleView *tview.TextView
}
//NewHeaderView creates a new HeaderView
func NewHeaderView() *HeaderView {
//TODO: change to uses FlexBox if there is more to display in the header
titleView: tview.NewTextView(),
}
SetText(goSDNAscii).
SetTextAlign(tview.AlignCenter).
SetBorder(true)
//GetContent returns the tview.Primitive belonging to the HeaderView
func (hv *HeaderView) GetContent() tview.Primitive {
return hv.titleView