示例#1
0
func (win *Window) Resize(rows, cols int) {
	C.wresize((*C.WINDOW)(win), C.int(rows), C.int(cols))
}
示例#2
0
// Resize the given window.
func (window *Window) Resize(rows, cols int) {
	C.wresize(window.cwin, C.int(rows), C.int(cols))
}
示例#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))
}
示例#4
0
文件: window.go 项目: zyxar/gocurse
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
}