Example #1
0
// cairo_bool_t cairo_in_clip (cairo_t *cr, double x, double y);
func (self *Surface) InClip(x, y float64) bool {
	return C.cairo_in_clip(self.context, C.double(x), C.double(y)) != 0
}
Example #2
0
// InClip is a wrapper around cairo_in_clip().
func (v *Context) InClip(x, y float64) bool {
	c := C.cairo_in_clip(v.native(), C.double(x), C.double(y))
	return gobool(c)
}
Example #3
0
//InClip reports whether pt is in the currently visible area defined by the
//clipping region.
//
//Originally cairo_in_clip.
func (c *Context) InClip(pt Point) bool {
	x, y := pt.c()
	return C.cairo_in_clip(c.c, x, y) == 1
}