示例#1
0
文件: ncurses.go 项目: junegunn/fzf
func (w *CursesWindow) Enclose(y int, x int) bool {
	return bool(C.wenclose(w.impl, C.int(y), C.int(x)))
}
示例#2
0
// Test whether the given coordinates are within the window or not
func (w *Window) Enclose(y, x int) bool {
	return bool(C.wenclose(w.win, C.int(y), C.int(x)))
}
示例#3
0
文件: window.go 项目: zyxar/gocurse
func (win *Window) Enclose(y, x int) bool {
	if C.wenclose((*C.WINDOW)(win), C.int(y), C.int(x)) == C.FALSE {
		return false
	}
	return true
}