Example #1
0
func (self *Surface) InStroke(x, y float64) bool {
	return C.cairo_in_stroke(self.context, C.double(x), C.double(y)) != 0
}
Example #2
0
func (self *Surface) InStroke(x, y float64) bool {
	ret := C.cairo_in_stroke(self.context, C.double(x), C.double(y))
	return cairobool2bool(ret)
}
Example #3
0
// InStroke is a wrapper around cairo_in_stroke().
func (v *Context) InStroke(x, y float64) bool {
	c := C.cairo_in_stroke(v.native(), C.double(x), C.double(y))
	return gobool(c)
}
Example #4
0
//InStroke reports whether the given point is inside the area that would be
//affected by a Stroke operation given the current path and stroking
//parameters.
//Surface dimensions and clipping are not taken into account.
//
//Originally cairo_in_stroke.
func (c *Context) InStroke(pt Point) bool {
	x, y := pt.c()
	return C.cairo_in_stroke(c.c, x, y) == 1
}