func (self *Surface) Translate(tx, ty float64) { C.cairo_translate(self.context, C.double(tx), C.double(ty)) }
func (c CairoContext) Translate(x, y float64) error { C.cairo_translate(c.nativePointer(), C.double(x), C.double(y)) return c.status() }
// 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)) }
//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 }