Esempio n. 1
0
// Overlay copies overlapping sections of src window onto the destination
// window. Non-blank elements are not overwritten.
func (w *Window) Overlay(src *Window) error {
	if C.overlay(src.win, w.win) == C.ERR {
		return errors.New("Failed to overlay window")
	}
	return nil
}
Esempio n. 2
0
func (win *Window) Overlay(ow *Window) error {
	if C.overlay((*C.WINDOW)(win), (*C.WINDOW)(ow)) == C.ERR {
		return CursesError{"overlay failed"}
	}
	return nil
}