Exemplo n.º 1
0
func GetClippingRectangle() (int, int, int, int) {
	var x, y, w, h C.int

	C.al_get_clipping_rectangle(&x, &y, &w, &h)

	return int(x), int(y), int(w), int(h)
}
Exemplo n.º 2
0
// Gets the clipping rectangle for the currently active bitmap.
func ClippingRectangle() (x, y, w, h int) {
	var cx, cy, cw, ch C.int
	C.al_get_clipping_rectangle(&cx, &cy, &cw, &ch)
	return int(cx), int(cy), int(cw), int(ch)
}