Exemplo n.º 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
}
Exemplo n.º 2
0
func (win *Window) Delete() error {
	if int(C.delwin((*C.WINDOW)(win))) == C.ERR {
		return CursesError{"delete failed"}
	}
	return nil
}
Exemplo n.º 3
0
func (w *Window) Close() {
	C.delwin(w.win)
}
Exemplo n.º 4
0
func (w *Window) Delwindow() error {
	if C.delwin(w.win) == ERR {
		return ErrorWinDelete
	}
	return nil
}
Exemplo n.º 5
0
func (win *Window) Del() os.Error {
	if int(C.delwin((*C.WINDOW)(win))) == 0 {
		return CursesError{"delete failed"}
	}
	return nil
}
Exemplo n.º 6
0
// Delete current window.
func (window *Window) Del() {
	C.delwin(window.cwin)
}
Exemplo n.º 7
0
/* Removes the window */
func (w *Window) Destroy() {
	w.Clear()
	C.delwin((*C.WINDOW)(w))
}
Exemplo n.º 8
0
// Delete current window.
func (win *Window) Del() {
	C.delwin((*C.WINDOW)(win))
}
Exemplo n.º 9
0
// Delete current window.
func (win *Window) Del() {
	C.delwin(win.cwin)
}
Exemplo n.º 10
0
func (w *CursesWindow) Close() {
	C.delwin(w.impl)
}