Example #1
0
// ClipRect limits the drawing area to specified rectangle
func ClipRect(x, y, w, h int) {
	C.ClipRect(C.VGint(x), C.VGint(y), C.VGint(w), C.VGint(h))
}
Example #2
0
func (b *Backend) ClipRect(rect image.Rectangle) {
	C.ClipRect(b.r, toCRect(rect))
}