Code

Use g_base64_encode_step when importing images via drag and drop.
[inkscape.git] / src / display / curve.h
index c3659de078d9616a5d9c95ebb2ac3ddd5f7a21a8..79a385b09f2a9e5eee526e8e6a269b10077d90b8 100644 (file)
@@ -20,6 +20,8 @@
 
 #include <2geom/forward.h>
 
+#include <boost/optional.hpp>
+
 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<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();
 
@@ -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();