summaryrefslogtreecommitdiffstats
path: root/src/sp-ellipse.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-ellipse.h')
-rw-r--r--src/sp-ellipse.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/sp-ellipse.h b/src/sp-ellipse.h
index 09768fd6d..dafece625 100644
--- a/src/sp-ellipse.h
+++ b/src/sp-ellipse.h
@@ -30,6 +30,12 @@ enum GenericEllipseType {
SP_GENERIC_ELLIPSE_ELLIPSE
};
+enum GenericEllipseArcType {
+ SP_GENERIC_ELLIPSE_ARC_TYPE_SLICE, // Default
+ SP_GENERIC_ELLIPSE_ARC_TYPE_CHORD,
+ SP_GENERIC_ELLIPSE_ARC_TYPE_ARC
+};
+
class SPGenericEllipse : public SPShape {
public:
SPGenericEllipse();
@@ -42,14 +48,13 @@ public:
SVGLength rx;
SVGLength ry;
- /**
- * If we have a slice, returns whether the shape is closed ("pizza slice") or not (arc only).
- */
- bool closed();
- void setClosed(bool value);
+ // Return slice, chord, or arc.
+ GenericEllipseArcType arcType() { return arc_type; };
+ void setArcType(GenericEllipseArcType type) { arc_type = type; };
double start, end;
GenericEllipseType type;
+ GenericEllipseArcType arc_type;
virtual void build(SPDocument *document, Inkscape::XML::Node *repr);
@@ -83,8 +88,6 @@ protected:
* @brief Determines whether the shape is a part of an ellipse.
*/
bool _isSlice() const;
-
- bool _closed;
};
#endif