Example #1
0
func (win *Window) Getmax() (x, y int) {
	in()
	defer out()
	x = int(C.getmaxx((*C.WINDOW)(win)))
	y = int(C.getmaxy((*C.WINDOW)(win)))
	return x, y
}
Example #2
0
/* Gets the maximum possible coordinates on the current screen */
func (w *Window) GetMaxXY() (x, y int) {
	return int(C.getmaxx((*C.WINDOW)(w))), int(C.getmaxy((*C.WINDOW)(w)))
}
Example #3
0
// Get windows sizes.
func (win *Window) Getmaxyx() (row, col int) {
	row = int(C.getmaxy((*C.WINDOW)(win)))
	col = int(C.getmaxx((*C.WINDOW)(win)))
	return row, col
}
Example #4
0
func (win *Window) Getmaxy() int {
	return int(C.getmaxy((*C.WINDOW)(win)))
}
Example #5
0
func (win *Window) Getmaxyx() (int, int) {
	return int(C.getmaxy((*C.WINDOW)(win))), int(C.getmaxx((*C.WINDOW)(win)))
}