示例#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
}
示例#2
0
文件: window.go 项目: zyxar/gocurse
func (win *Window) Overlay(ow *Window) error {
	if C.overlay((*C.WINDOW)(win), (*C.WINDOW)(ow)) == C.ERR {
		return CursesError{"overlay failed"}
	}
	return nil
}