X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fdisplay%2Fcurve.h;h=79a385b09f2a9e5eee526e8e6a269b10077d90b8;hb=90a3966dd44e306d23febc15ebd65cde07d7a4dd;hp=c3659de078d9616a5d9c95ebb2ac3ddd5f7a21a8;hpb=235e8e7977f17c6070b4691837b8a6cb2bd4cc35;p=inkscape.git diff --git a/src/display/curve.h b/src/display/curve.h index c3659de07..79a385b09 100644 --- a/src/display/curve.h +++ b/src/display/curve.h @@ -20,6 +20,8 @@ #include <2geom/forward.h> +#include + class SPCurve { public: /* Constructors */ @@ -46,10 +48,10 @@ public: Geom::Path const * last_path() const; Geom::Curve const * first_segment() const; Geom::Path const * first_path() const; - Geom::Point first_point() const; - Geom::Point last_point() const; - Geom::Point second_point() const; - Geom::Point penultimate_point() const; + boost::optional first_point() const; + boost::optional last_point() const; + boost::optional second_point() const; + boost::optional penultimate_point() const; void reset(); @@ -57,6 +59,8 @@ public: void moveto(gdouble x, gdouble y); void lineto(Geom::Point const &p); void lineto(gdouble x, gdouble y); + void quadto(Geom::Point const &p1, Geom::Point const &p2); + void quadto(gdouble x1, gdouble y1, gdouble x2, gdouble y2); void curveto(Geom::Point const &p0, Geom::Point const &p1, Geom::Point const &p2); void curveto(gdouble x0, gdouble y0, gdouble x1, gdouble y1, gdouble x2, gdouble y2); void closepath();