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