mirror of
https://github.com/jroimartin/gocui.git
synced 2025-04-30 13:48:54 +08:00
use dimensions method rather than function
This commit is contained in:
parent
b46a743016
commit
8cecad864f
2
view.go
2
view.go
@ -122,7 +122,7 @@ func newView(name string, x0, y0, x1, y1 int, mode OutputMode) *View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Dimensions returns the dimensions of the View
|
// Dimensions returns the dimensions of the View
|
||||||
func Dimensions(v *View) (int, int, int, int) {
|
func (v *View) Dimensions() (int, int, int, int) {
|
||||||
return v.x0, v.y0, v.x1, v.y1
|
return v.x0, v.y0, v.x1, v.y1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user