func (win *Window) AttrGet() (int, int16, error) { var attrs C.attr_t var pair C.short if C.wattr_get((*C.WINDOW)(win), &attrs, &pair, nil) == C.ERR { return 0, 0, CursesError{"wattr_get failed"} } return int(attrs), int16(pair), nil }
func (w *Window) Attr_get() (int, int, error) { var attr C.attr_t var pair C.short if C.wattr_get(w.win, &attr, &pair, nil) == ERR { return 0, 0, Error } return int(attr), int(pair), nil }