X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fevent-context.h;h=3a745a6a2c4cafb6d8c4f89268a9cc2003e89306;hb=9dbb73d5add1539a4a032b311ffe044c6e3ed067;hp=400fde5e379e4bafe085a8e57dd70934b829424a;hpb=124aed58b23bd24292c6e2175522db06a196e39e;p=inkscape.git diff --git a/src/event-context.h b/src/event-context.h index 400fde5e3..3a745a6a2 100644 --- a/src/event-context.h +++ b/src/event-context.h @@ -20,13 +20,11 @@ #include #include #include -#include 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