示例#1
0
文件: curses.go 项目: srm88/gocurse
func (win *Window) Scrollok(bf bool) {
	var flag int
	if bf {
		flag = 1
	} else {
		flag = 0
	}
	C.scrollok((*C.WINDOW)(win), C.int(flag))
}
示例#2
0
// ScrollOk sets whether scrolling will work
func (w *Window) ScrollOk(ok bool) {
	C.scrollok(w.win, C.bool(ok))
}
示例#3
0
// Enable window scrolling.
func (window *Window) Scrollok(bf bool) {
	C.scrollok(window.cwin, C.bool(bf))
}
示例#4
0
// Enable window scrolling.
func (win *Window) Scrollok(bf bool) {
	C.scrollok((*C.WINDOW)(win), C.bool(bf))
}
示例#5
0
文件: window.go 项目: zyxar/gocurse
func (win *Window) Scrollok(b bool) error {
	if C.scrollok((*C.WINDOW)(win), bool2cint(b)) == C.ERR {
		return CursesError{"scrollok failed"}
	}
	return nil
}