Example #1
0
func (w *Window) SetPosition(x, y uint) error {
	aferr := C.af_set_position(w.window, C.uint(x), C.uint(y))
	if aferr != 0 {
		return ErrSetPosition
	}
	return nil
}
Example #2
0
func (w *Window) SetPosition(x, y uint) error {
	return af_call(C.af_set_position(w.window, C.uint(x), C.uint(y)))
}