Code

Simple first pass for rough timing
[inkscape.git] / src / common-context.h
index 1f396360835a10ab91dff359ab85ebc1528ca6ff..416307d58e6331154c7edf8acd757b98600a3413 100644 (file)
@@ -22,6 +22,7 @@
 #include "event-context.h"
 #include "display/curve.h"
 #include "display/display-forward.h"
+#include <2geom/point.h>
 
 #define SP_TYPE_COMMON_CONTEXT (sp_common_context_get_type())
 #define SP_COMMON_CONTEXT(o) (GTK_CHECK_CAST((o), SP_TYPE_COMMON_CONTEXT, SPCommonContext))
@@ -54,10 +55,10 @@ struct SPCommonContext : public SPEventContext {
     SPCurve *cal2;
 
     /** left edge points for this segment */
-    NR::Point point1[SAMPLING_SIZE];
+    Geom::Point point1[SAMPLING_SIZE];
 
     /** right edge points for this segment */
-    NR::Point point2[SAMPLING_SIZE];
+    Geom::Point point2[SAMPLING_SIZE];
 
     /** number of edge points for this segment */
     gint npoints;
@@ -66,13 +67,13 @@ struct SPCommonContext : public SPEventContext {
     Inkscape::XML::Node *repr;
 
     /* common */
-    NR::Point cur;
-    NR::Point vel;
+    Geom::Point cur;
+    Geom::Point vel;
     double vel_max;
-    NR::Point acc;
-    NR::Point ang;
-    NR::Point last;
-    NR::Point del;
+    Geom::Point acc;
+    Geom::Point ang;
+    Geom::Point last;
+    Geom::Point del;
 
     /* extended input data */
     gdouble pressure;
@@ -115,5 +116,5 @@ GType sp_common_context_get_type(void);
   fill-column:99
   End:
 */
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :