Exemplo n.º 1
0
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
}
Exemplo n.º 2
0
func (w *Window) Chgat(n, attr, color int) error {
	if C.wchgat(w.win, C.int(n), C.attr_t(attr), C.short(color), nil) == ERR {
		return Error
	}
	return nil
}
Exemplo n.º 3
0
func (win *Window) Attrset(attr int) {
	win.cwin._attrs = C.attr_t(attr)
}
Exemplo n.º 4
0
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
}
Exemplo n.º 5
0
func (win *Window) AttrSet(attr int, color int16) error {
	if C.wattr_set((*C.WINDOW)(win), C.attr_t(attr), C.short(color), nil) == C.ERR {
		return CursesError{"wattr_set failed"}
	}
	return nil
}
Exemplo n.º 6
0
func (win *Window) AttrOff(attr int) error {
	if C.wattr_off((*C.WINDOW)(win), C.attr_t(attr), nil) == C.ERR {
		return CursesError{"wattr_off failed"}
	}
	return nil
}