Exemple #1
0
func (w *Window) Attrset(attrs int) error {
	if C.wattrset(w.win, C.int(attrs)) == ERR {
		return Error
	}
	return nil
}
Exemple #2
0
func (win *Window) Attrset(flags int32) {
	C.wattrset((*C.WINDOW)(win), C.int(flags))
}
Exemple #3
0
/* Clears all attributes, then sets an attribute(s). */
func (w *Window) AttrSet(attr int) {
	C.wattrset((*C.WINDOW)(w), C.int(attr))
}
Exemple #4
0
func (win *Window) Attrset(attr int) error {
	if C.wattrset((*C.WINDOW)(win), C.int(attr)) == C.ERR {
		return CursesError{"wattrset failed"}
	}
	return nil
}