Example #1
0
func (self *Surface) Translate(tx, ty float64) {
	C.cairo_translate(self.context, C.double(tx), C.double(ty))
}
Example #2
0
func (c CairoContext) Translate(x, y float64) error {
	C.cairo_translate(c.nativePointer(), C.double(x), C.double(y))
	return c.status()
}
Example #3
0
// Translate is a wrapper around cairo_translate.
func (v *Context) Translate(tx, ty float64) {
	C.cairo_translate(v.native(), C.double(tx), C.double(ty))
}
Example #4
0
//Translate the current transformation matrix by vector v.
//This offset is interpreted as a user-space coordinate according to the CTM
//in place before the new call to Translate.
//In other words, the translation of the user-space origin takes place after
//any existing transformation.
//
//Originally cairo_translate.
func (c *Context) Translate(v Point) *Context {
	x, y := v.c()
	C.cairo_translate(c.c, x, y)
	return c
}