示例#1
0
文件: window.go 项目: zyxar/gocurse
func (win *Window) Dupwin() (*Window, error) {
	dw := (*Window)(C.dupwin((*C.WINDOW)(win)))
	if dw == nil {
		return nil, CursesError{"dupwin failed"}
	}
	return dw, nil
}
示例#2
0
// Duplicate the window, creating an exact copy.
func (w *Window) Duplicate() *Window {
	return &Window{C.dupwin(w.win)}
}
示例#3
0
文件: curses.go 项目: zozor/gocurse
func DublicateWindow(w *Window) *Window {
	return &Window{C.dupwin(w.win)}
}