Code

Refactoring SPColor to C++ and removing legacy CMYK implementation
[inkscape.git] / src / event-context.h
index ae7ec61da315bbdc2dd0466a913e9da60dcc6cda..05e72c76767c0ab845b4629882ea7c396daf8937 100644 (file)
@@ -74,6 +74,8 @@ struct SPEventContext : public GObject {
 
     SPKnotHolder *shape_knot_holder;
     Inkscape::XML::Node *shape_repr;
+
+    bool space_panning;
 };
 
 /**
@@ -90,6 +92,7 @@ struct SPEventContextClass : public GObjectClass {
 };
 
 #define SP_EVENT_CONTEXT_DESKTOP(e) (SP_EVENT_CONTEXT(e)->desktop)
+#define SP_EVENT_CONTEXT_DOCUMENT(e) ((SP_EVENT_CONTEXT_DESKTOP(e))->doc())
 
 #define SP_EVENT_CONTEXT_STATIC 0