diff --git a/src/eraser-context.h b/src/eraser-context.h
index bc862012d9d772650f1f4aa82ded083e4a2119f3..b47c21b577cab1b48f04d3a85a79320d6e8cbdae 100644 (file)
--- a/src/eraser-context.h
+++ b/src/eraser-context.h
#define ERC_MAX_TILT 1.0
#define ERC_DEFAULT_TILT 0.0
#define ERC_MAX_TILT 1.0
#define ERC_DEFAULT_TILT 0.0
-struct SPEraserContext
-{
- SPEventContext event_context;
-
+struct SPEraserContext : public SPEventContext {
/** accumulated shape which ultimately goes in svg:path */
SPCurve *accumulated;
/** accumulated shape which ultimately goes in svg:path */
SPCurve *accumulated;
/** left edge of the stroke; combined to get accumulated */
SPCurve *cal1;
/** left edge of the stroke; combined to get accumulated */
SPCurve *cal1;
+
/** right edge of the stroke; combined to get accumulated */
SPCurve *cal2;
/** left edge points for this segment */
NR::Point point1[SAMPLING_SIZE];
/** right edge of the stroke; combined to get accumulated */
SPCurve *cal2;
/** left edge points for this segment */
NR::Point point1[SAMPLING_SIZE];
+
/** right edge points for this segment */
NR::Point point2[SAMPLING_SIZE];
/** right edge points for this segment */
NR::Point point2[SAMPLING_SIZE];
+
/** number of edge points for this segment */
gint npoints;
/** number of edge points for this segment */
gint npoints;
NR::Point ang;
NR::Point last;
NR::Point del;
NR::Point ang;
NR::Point last;
NR::Point del;
+
/* extended input data */
gdouble pressure;
gdouble xtilt;
gdouble ytilt;
/* extended input data */
gdouble pressure;
gdouble xtilt;
gdouble ytilt;
+
/* attributes */
guint dragging : 1; /* mouse state: mouse is dragging */
guint usepressure : 1;
/* attributes */
guint dragging : 1; /* mouse state: mouse is dragging */
guint usepressure : 1;
bool abs_width;
};
bool abs_width;
};
-struct SPEraserContextClass
-{
- SPEventContextClass parent_class;
-};
+struct SPEraserContextClass : public SPEventContextClass{};
-GtkType sp_eraser_context_get_type(void);
+GType sp_eraser_context_get_type(void);
#endif // SP_ERASER_CONTEXT_H_SEEN
#endif // SP_ERASER_CONTEXT_H_SEEN