Exemple #1
0
func (w *CursesWindow) Enclose(y int, x int) bool {
	return bool(C.wenclose(w.impl, C.int(y), C.int(x)))
}
Exemple #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)))
}
Exemple #3
0
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
}