示例#1
0
文件: cairo.go 项目: raichu/gotk3
// ArcNegative is a wrapper around cairo_arc_negative().
func (v *Context) ArcNegative(xc, yc, radius, angle1, angle2 float64) {
	C.cairo_arc_negative(v.native(), C.double(xc), C.double(yc), C.double(radius), C.double(angle1), C.double(angle2))
}
示例#2
0
func (self *Surface) ArcNegative(xc, yc, radius, angle1, angle2 float64) {
	C.cairo_arc_negative(self.context,
		C.double(xc), C.double(yc),
		C.double(radius),
		C.double(angle1), C.double(angle2))
}
示例#3
0
//ArcNegative adds a circular arc along the surface of circle from fromAngle
//decreasing to toAngle.
//
//If fromAngle > toAngle, then toAngle will be dereased by 2π until
//fromAngle < toAngle.
//
//ArcNegative gives the arc in the direction of decreasing angles.
//Use Arc to get the arc in the direction of increasing angles.
//
//Originally cairo_arc_negative.
func (c *Context) ArcNegative(circle Circle, fromAngle, toAngle float64) *Context {
	x, y, r := circle.c()
	a1, a2 := C.double(fromAngle), C.double(toAngle)
	C.cairo_arc_negative(c.c, x, y, r, a1, a2)
	return c
}