func (win *Window) Scrollok(bf bool) { var flag int if bf { flag = 1 } else { flag = 0 } C.scrollok((*C.WINDOW)(win), C.int(flag)) }
// ScrollOk sets whether scrolling will work func (w *Window) ScrollOk(ok bool) { C.scrollok(w.win, C.bool(ok)) }
// Enable window scrolling. func (window *Window) Scrollok(bf bool) { C.scrollok(window.cwin, C.bool(bf)) }
// Enable window scrolling. func (win *Window) Scrollok(bf bool) { C.scrollok((*C.WINDOW)(win), C.bool(bf)) }
func (win *Window) Scrollok(b bool) error { if C.scrollok((*C.WINDOW)(win), bool2cint(b)) == C.ERR { return CursesError{"scrollok failed"} } return nil }