示例#1
0
func (self *Surface) InFill(x, y float64) bool {
	return C.cairo_in_fill(self.context, C.double(x), C.double(y)) != 0
}
示例#2
0
文件: cairo.go 项目: zvin/gocairo
func (self *Surface) InFill(x, y float64) bool {
	ret := C.cairo_in_fill(self.context, C.double(x), C.double(y))
	return cairobool2bool(ret)
}
示例#3
0
文件: cairo.go 项目: raichu/gotk3
// InFill is a wrapper around cairo_in_fill().
func (v *Context) InFill(x, y float64) bool {
	c := C.cairo_in_fill(v.native(), C.double(x), C.double(y))
	return gobool(c)
}
示例#4
0
//InFill reports whether the given point is inside the area that would be
//affected by a Fill, given the current path and filling parameters.
//Surface dimensions and clipping are not taken into account.
//
//Originally cairo_in_fill.
func (c *Context) InFill(pt Point) bool {
	x, y := pt.c()
	return C.cairo_in_fill(c.c, x, y) == 1
}