bump gocui fork to support getting view dimensions

This commit is contained in:
Jesse Duffield 2018-08-12 11:39:37 +10:00
parent f97a098c6f
commit 400301e8fa
2 changed files with 7 additions and 2 deletions

View file

@ -121,6 +121,11 @@ func newView(name string, x0, y0, x1, y1 int, mode OutputMode) *View {
return v
}
// Dimensions returns the dimensions of the View
func Dimensions(v *View) (int, int, int, int) {
return v.x0, v.y0, v.x1, v.y1
}
// Size returns the number of visible columns and rows in the View.
func (v *View) Size() (x, y int) {
return v.x1 - v.x0 - 1, v.y1 - v.y0 - 1