Example #1
0
func (self *Surface) Clip() {
	C.cairo_clip(self.context)
}
Example #2
0
func (c CairoContext) Clip() error {
	C.cairo_clip(c.nativePointer())
	return c.status()
}
Example #3
0
// Clip is a wrapper around cairo_clip().
func (v *Context) Clip() {
	C.cairo_clip(v.native())
}
Example #4
0
//Clip establishes a new clip region by intersecting the current clip region
//with the current path as it would be filled by Fill and according to the
//current fill rule.
//
//After Clip, the current path will be cleared from the cairo context.
//
//The current clip region affects all drawing operations by effectively masking
//out any changes to the surface that are outside the current clip region.
//
//Clip can only make the clip region smaller, never larger.
//But the current clip is part of the graphics state, so a temporary restriction
//of the clip region can be achieved by calling Clip within a Save/Restore pair.
//The only other means of increasing the size of the clip region is ResetClip.
//
//Originally cairo_clip.
func (c *Context) Clip() *Context {
	C.cairo_clip(c.c)
	return c
}