diff --git a/src/display/curve.h b/src/display/curve.h
index 07d951b6330022ddccfd3ee732fdfbe3d7db4fbe..847d09f46628df9b483374b7126018c284a1285a 100644 (file)
--- a/src/display/curve.h
+++ b/src/display/curve.h
#include "libnr/nr-forward.h"
#include "libnr/nr-point.h"
+#include "libnr/nr-rect.h"
/// Wrapper around NArtBpath.
struct SPCurve {
/// (first subitem of the item about zero-length path segments)
NR::Point movePos;
- /// True iff bpath points to read-only, static storage (see callers of
- /// sp_curve_new_from_static_bpath), in which case we shouldn't free
- /// bpath and shouldn't write through it.
- bool sbpath : 1;
-
/// True iff current point is defined. Initially false for a new curve;
/// becomes true after moveto; becomes false on closepath. Curveto,
/// lineto etc. require hascpt; hascpt remains true after lineto/curveto.
SPCurve *sp_curve_new();
SPCurve *sp_curve_new_sized(gint length);
SPCurve *sp_curve_new_from_bpath(NArtBpath *bpath);
-SPCurve *sp_curve_new_from_static_bpath(NArtBpath const *bpath);
SPCurve *sp_curve_new_from_foreign_bpath(NArtBpath const bpath[]);
+SPCurve *sp_curve_new_from_rect(NR::Maybe<NR::Rect> const &rect);
SPCurve *sp_curve_ref(SPCurve *curve);
SPCurve *sp_curve_unref(SPCurve *curve);