Example #1
0
func (win *Window) Resize(rows, cols int) {
	C.wresize((*C.WINDOW)(win), C.int(rows), C.int(cols))
}
Example #2
0
// Resize the given window.
func (window *Window) Resize(rows, cols int) {
	C.wresize(window.cwin, C.int(rows), C.int(cols))
}
Example #3
0
// Resize the window to new height, width
func (w *Window) Resize(height, width int) {
	C.wresize(w.win, C.int(height), C.int(width))
}
Example #4
0
func (win *Window) Resize(rows, cols int) error {
	if C.wresize((*C.WINDOW)(win), C.int(rows), C.int(cols)) == C.ERR {
		return CursesError{"wresize failed"}
	}
	return nil
}