Exemplo n.º 1
0
func (self *Surface) RelMoveTo(dx, dy float64) {
	C.cairo_rel_move_to(self.context, C.double(dx), C.double(dy))
}
Exemplo n.º 2
0
//RelMoveTo begins a new sub-path.
//After this call the current point will be offset by v.
//
//If there is no current point, c is now in an error state.
//
//It is equivalent to
//	if p, ok := c.CurrentPoint(); ok {
//		c.Move(p.Add(v))
//	} else {
//		// c is broken now
//	}
//
//Originally cairo_rel_move_to.
func (c *Context) RelMoveTo(v Point) *Context {
	x, y := v.c()
	C.cairo_rel_move_to(c.c, x, y)
	return c
}