X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdisplay%2Fcurve.h;h=847d09f46628df9b483374b7126018c284a1285a;hb=b9cac2d195a58d3f9d9067b74f9fcadd0fb3cf39;hp=07d951b6330022ddccfd3ee732fdfbe3d7db4fbe;hpb=fdc44da6a01ea7605271feed15df61005ddd0219;p=inkscape.git diff --git a/src/display/curve.h b/src/display/curve.h index 07d951b63..847d09f46 100644 --- a/src/display/curve.h +++ b/src/display/curve.h @@ -19,6 +19,7 @@ #include "libnr/nr-forward.h" #include "libnr/nr-point.h" +#include "libnr/nr-rect.h" /// Wrapper around NArtBpath. struct SPCurve { @@ -45,11 +46,6 @@ 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. @@ -74,8 +70,8 @@ struct SPCurve { 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 const &rect); SPCurve *sp_curve_ref(SPCurve *curve); SPCurve *sp_curve_unref(SPCurve *curve);