Code

Store cached icons to disk between runs, and invalidate/purge as needed.
[inkscape.git] / src / box3d-context.h
index 1817aa180ff251256e1b0d584aa1f4813c2fc303..913e9826306d7a4a96b85bc48cc97f6a9b534210 100644 (file)
@@ -20,8 +20,6 @@
 #include "proj_pt.h"
 #include "vanishing-point.h"
 
-struct SPKnotHolder;
-
 #define SP_TYPE_BOX3D_CONTEXT            (sp_box3d_context_get_type ())
 #define SP_BOX3D_CONTEXT(obj)            (GTK_CHECK_CAST ((obj), SP_TYPE_BOX3D_CONTEXT, Box3DContext))
 #define SP_BOX3D_CONTEXT_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), SP_TYPE_BOX3D_CONTEXT, Box3DContextClass))
@@ -33,7 +31,7 @@ class Box3DContextClass;
 
 struct Box3DContext : public SPEventContext {
     SPItem *item;
-    NR::Point center;
+    Geom::Point center;
 
     /**
      * save three corners while dragging:
@@ -43,9 +41,9 @@ struct Box3DContext : public SPEventContext {
      *    if we are ctrl-dragging but is constrained to the perspective line from drag_ptC
      *    to the vanishing point Y otherwise)
      */
-    NR::Point drag_origin;
-    NR::Point drag_ptB;
-    NR::Point drag_ptC;
+    Geom::Point drag_origin;
+    Geom::Point drag_ptB;
+    Geom::Point drag_ptC;
 
     Proj::Pt3 drag_origin_proj;
     Proj::Pt3 drag_ptB_proj;
@@ -69,6 +67,8 @@ struct Box3DContextClass {
 
 GtkType sp_box3d_context_get_type (void);
 
+void sp_box3d_context_update_lines(SPEventContext *ec);
+
 #endif /* __SP_BOX3D_CONTEXT_H__ */
 
 /*
@@ -80,4 +80,4 @@ GtkType sp_box3d_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 :