コード例 #1
0
ファイル: openvg.go プロジェクト: jhautefeuille/openvg
// 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))
}