Beispiel #1
0
// Move the cursor to the specified coordinates within the window
func (w *Window) Move(y, x int) {
	C.wmove(w.win, C.int(y), C.int(x))
	return
}
Beispiel #2
0
// Normally Y is the first parameter passed in curses.
func (win *Window) Move(x, y int) {
	C.wmove((*C.WINDOW)(win), C.int(y), C.int(x))
}
Beispiel #3
0
// Normally Y is the first parameter passed in curses.
func (w *Window) MoveCursor(x, y int) error {
	if C.wmove(w.win, C.int(y), C.int(x)) == ERR {
		return ErrorWindowMove
	}
	return nil
}
Beispiel #4
0
func (w *Window) Move(y int, x int) {
	C.wmove(w.win, C.int(y), C.int(x))
}
Beispiel #5
0
func (window *Window) Move(y, x int) {
	C.wmove(window.cwin, C.int(y), C.int(x))
}
Beispiel #6
0
func (win *Window) Move(y, x int) {
	C.wmove((*C.WINDOW)(win), C.int(y), C.int(x))
	return
}
Beispiel #7
0
func (w *CursesWindow) Move(y int, x int) {
	C.wmove(w.impl, C.int(y), C.int(x))
}
Beispiel #8
0
// Non-atomic move, needs to be called by atomic funcs in order to prevent deadlocks.
func (win *Window) move(x, y int) {
	// Y normally is the first parameter
	C.wmove((*C.WINDOW)(win), C.int(y), C.int(x))
}
Beispiel #9
0
func (win *Window) Move(y, x int) error {
	if C.wmove((*C.WINDOW)(win), C.int(y), C.int(x)) == C.ERR {
		return CursesError{"wmove failed"}
	}
	return nil
}