예제 #1
0
func (w *Window) Grid(rows, cols int) error {
	aferr := C.af_grid(w.window, C.int(rows), C.int(cols))

	if aferr != 0 {
		return ErrGrid
	}

	return nil
}
예제 #2
0
func (w *Window) Grid(rows, cols int) error {
	return af_call(C.af_grid(w.window, C.int(rows), C.int(cols)))
}