// Overwrite copies overlapping sections of src window onto the destination // window. This function is considered "destructive" by copying all // elements of src onto the destination window. func (w *Window) Overwrite(src *Window) error { if C.overwrite(src.win, w.win) == C.ERR { return errors.New("Failed to overwrite window") } return nil }
func (win *Window) Overwrite(ow *Window) error { if C.overwrite((*C.WINDOW)(win), (*C.WINDOW)(ow)) == C.ERR { return CursesError{"overwrite failed"} } return nil }