Function PathElement.getPoint

Get a point from this element. Index is zero-based. The number of available points depends on the elements type:

CAIRO_PATH_MOVE_TO:     1 point
CAIRO_PATH_LINE_TO:     1 point
CAIRO_PATH_CURVE_TO:    3 points
CAIRO_PATH_CLOSE_PATH:  0 points

Prototype

Point!(double) getPoint(
  int index
) const;

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