示例#1
0
文件: curses.go 项目: zozor/gocurse
func (w *Window) Attrset(attrs int) error {
	if C.wattrset(w.win, C.int(attrs)) == ERR {
		return Error
	}
	return nil
}
示例#2
0
文件: curses.go 项目: adsr/gocurse
func (win *Window) Attrset(flags int32) {
	C.wattrset((*C.WINDOW)(win), C.int(flags))
}
示例#3
0
/* Clears all attributes, then sets an attribute(s). */
func (w *Window) AttrSet(attr int) {
	C.wattrset((*C.WINDOW)(w), C.int(attr))
}
示例#4
0
文件: window.go 项目: zyxar/gocurse
func (win *Window) Attrset(attr int) error {
	if C.wattrset((*C.WINDOW)(win), C.int(attr)) == C.ERR {
		return CursesError{"wattrset failed"}
	}
	return nil
}