Code

Mark suspicious ignoring of parameters
[inkscape.git] / src / event-context.h
index 400fde5e379e4bafe085a8e57dd70934b829424a..3a745a6a2c4cafb6d8c4f89268a9cc2003e89306 100644 (file)
 #include <glib-object.h>
 #include <gdk/gdktypes.h>
 #include <gdk/gdkevents.h>
-#include <gdk/gdkpixbuf.h>
 
 struct GrDrag;
 struct SPDesktop;
 struct SPItem;
-struct SPKnotHolder;
-
+class KnotHolder;
 namespace NR {
     class Point;
 }
@@ -51,8 +49,7 @@ struct SPEventContext : public GObject {
     unsigned key;
     SPDesktop *desktop;
     Inkscape::XML::Node *prefs_repr;
-    gchar **cursor_shape;
-    GdkPixbuf *cursor_pixbuf;
+    gchar const *const *cursor_shape;
     gint hot_x, hot_y;
     GdkCursor *cursor;
 
@@ -74,8 +71,10 @@ struct SPEventContext : public GObject {
     GrDrag *_grdrag;
     GrDrag *get_drag () {return _grdrag;}
 
-    SPKnotHolder *shape_knot_holder;
+    KnotHolder *shape_knot_holder;
     Inkscape::XML::Node *shape_repr;
+
+    bool space_panning;
 };
 
 /**
@@ -92,6 +91,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