예제 #1
0
// Delete the window. This function must be called to ensure memory is freed
// to prevent memory leaks once you are done with the window.
func (w *Window) Delete() error {
	if C.delwin(w.win) == C.ERR {
		return errors.New("Failed to delete window")
	}
	w = nil
	return nil
}
예제 #2
0
파일: curses.go 프로젝트: jncorpron/gocurse
func (win *Window) Delete() error {
	if int(C.delwin((*C.WINDOW)(win))) == C.ERR {
		return CursesError{"delete failed"}
	}
	return nil
}
예제 #3
0
파일: curses.go 프로젝트: infokiller/fzf
func (w *Window) Close() {
	C.delwin(w.win)
}
예제 #4
0
파일: curses.go 프로젝트: zozor/gocurse
func (w *Window) Delwindow() error {
	if C.delwin(w.win) == ERR {
		return ErrorWinDelete
	}
	return nil
}
예제 #5
0
func (win *Window) Del() os.Error {
	if int(C.delwin((*C.WINDOW)(win))) == 0 {
		return CursesError{"delete failed"}
	}
	return nil
}
예제 #6
0
// Delete current window.
func (window *Window) Del() {
	C.delwin(window.cwin)
}
예제 #7
0
파일: ncurses.go 프로젝트: Olreich/ncurses
/* Removes the window */
func (w *Window) Destroy() {
	w.Clear()
	C.delwin((*C.WINDOW)(w))
}
예제 #8
0
파일: curses.go 프로젝트: gcatlin/gocurses
// Delete current window.
func (win *Window) Del() {
	C.delwin((*C.WINDOW)(win))
}
예제 #9
0
파일: curses.go 프로젝트: repos-go/curses
// Delete current window.
func (win *Window) Del() {
	C.delwin(win.cwin)
}
예제 #10
0
파일: ncurses.go 프로젝트: junegunn/fzf
func (w *CursesWindow) Close() {
	C.delwin(w.impl)
}