diff --git a/src/display/curve.h b/src/display/curve.h
index c3659de078d9616a5d9c95ebb2ac3ddd5f7a21a8..79a385b09f2a9e5eee526e8e6a269b10077d90b8 100644 (file)
--- a/src/display/curve.h
+++ b/src/display/curve.h
#include <2geom/forward.h>
#include <2geom/forward.h>
+#include <boost/optional.hpp>
+
class SPCurve {
public:
/* Constructors */
class SPCurve {
public:
/* Constructors */
Geom::Path const * last_path() const;
Geom::Curve const * first_segment() const;
Geom::Path const * first_path() const;
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<Geom::Point> first_point() const;
+ boost::optional<Geom::Point> last_point() const;
+ boost::optional<Geom::Point> second_point() const;
+ boost::optional<Geom::Point> penultimate_point() const;
void reset();
void reset();
void moveto(gdouble x, gdouble y);
void lineto(Geom::Point const &p);
void lineto(gdouble x, gdouble y);
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();
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();