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