mirror of https://github.com/miguelmota/cointop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
311 B
Go
19 lines
311 B
Go
package cointop
|
|
|
|
// Size returns window width and height
|
|
func (ct *Cointop) Size() (int, int) {
|
|
return ct.g.Size()
|
|
}
|
|
|
|
// Width returns window width
|
|
func (ct *Cointop) Width() int {
|
|
w, _ := ct.Size()
|
|
return w
|
|
}
|
|
|
|
// Height returns window height
|
|
func (ct *Cointop) Height() int {
|
|
_, h := ct.Size()
|
|
return h
|
|
}
|