summaryrefslogtreecommitdiffstats
path: root/src/draw-context.h
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-08 22:23:07 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-08 22:23:07 +0000
commite58cac52b258e64c2cc88b0044bf9cfbaecedce2 (patch)
treef2a5d2992b8658a583e740321b1a4b461aad54a9 /src/draw-context.h
parentReactivated independent reference counting in the SPObject tree. (diff)
downloadinkscape-e58cac52b258e64c2cc88b0044bf9cfbaecedce2.tar.gz
inkscape-e58cac52b258e64c2cc88b0044bf9cfbaecedce2.zip
Started conversion of SPEventContext tree; added virtual pads to all classes.
(bzr r11608.1.89)
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;
/**