summaryrefslogtreecommitdiffstats
path: root/src/draw-context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/draw-context.h')
-rw-r--r--src/draw-context.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/draw-context.h b/src/draw-context.h
index 98309c0cb..4cb1d5cc2 100644
--- a/src/draw-context.h
+++ b/src/draw-context.h
@@ -35,7 +35,12 @@ namespace Inkscape
class Selection;
}
-struct SPDrawContext : public SPEventContext{
+class CDrawContext;
+
+class SPDrawContext : public SPEventContext{
+public:
+ CDrawContext* cdrawcontext;
+
Inkscape::Selection *selection;
SPCanvasItem *grab;
@@ -83,6 +88,19 @@ struct SPDrawContext : public SPEventContext{
struct SPDrawContextClass : public SPEventContextClass{};
+class CDrawContext : public CEventContext {
+public:
+ CDrawContext(SPDrawContext* drawcontext);
+
+ virtual void setup();
+ virtual void finish();
+ virtual void set(Inkscape::Preferences::Entry* val);
+ virtual gint root_handler(GdkEvent* event);
+
+protected:
+ SPDrawContext* spdrawcontext;
+};
+
GType sp_draw_context_get_type(void) G_GNUC_CONST;
/**