示例#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))
}
示例#2
0
文件: skia.go 项目: phaikawl/gosui
func (b *Backend) ClipRect(rect image.Rectangle) {
	C.ClipRect(b.r, toCRect(rect))
}