tui/views/view_grow.go

21 lines
326 B
Go
Raw Normal View History

2022-04-02 13:01:41 +02:00
package views
import (
"git.tordarus.net/Tordarus/tui"
)
// GrowView is a tui.View which always demands all available space
type GrowView struct {
tui.ViewTmpl
}
var _ tui.View = &GrowView{}
func NewGrowView() *GrowView {
return &GrowView{}
}
func (v *GrowView) Layout() (prefWidth, prefHeight int) {
return -1, -1
}