Function Context.relMoveTo

Begin a new sub-path. After this call the current point will offset by rp1.

Given a current point of (x, y), cairo_rel_move_to(cr, dx, dy) is logically equivalent to cairo_move_to(cr, x + dx, y + dy).

It is an error to call this function with no current point. Doing so will cause an CairoException with a status of CAIRO_STATUS_NO_CURRENT_POINT.

Prototypes

void relMoveTo(
  Point!(double) rp1
);

void relMoveTo(
  double x,
  double y
);

Authors

Johannes Pfau cairoD
Andrej Mitrovic cairoD
cairo team cairo

Copyright

License

cairoD wrapper/bindings Boost License 1.0
cairo LGPL 2.1 / MPL 1.1