示例#1
0
文件: curses.go 项目: zozor/gocurse
func (w *Window) MoveChgat(x, y, n, attr, color int) error {
	if C.mvwchgat(w.win, C.int(y), C.int(x), C.int(n), C.attr_t(attr), C.short(color), nil) == ERR {
		return Error
	}
	return nil
}
示例#2
0
文件: window.go 项目: zyxar/gocurse
func (win *Window) Mvchgat(y, x, n, attrs int, color int16) error {
	if C.mvwchgat((*C.WINDOW)(win), C.int(y), C.int(x), C.int(n), C.attr_t(attrs), C.short(color), nil) == C.ERR {
		return CursesError{"mvwchgat failed"}
	}
	return nil
}