Exemplo n.º 1
0
func (self *Surface) InStroke(x, y float64) bool {
	return C.cairo_in_stroke(self.context, C.double(x), C.double(y)) != 0
}
Exemplo n.º 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)
}
Exemplo n.º 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)
}
Exemplo n.º 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
}