diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-04-08 22:23:07 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-04-08 22:23:07 +0000 |
| commit | e58cac52b258e64c2cc88b0044bf9cfbaecedce2 (patch) | |
| tree | f2a5d2992b8658a583e740321b1a4b461aad54a9 /src/arc-context.h | |
| parent | Reactivated independent reference counting in the SPObject tree. (diff) | |
| download | inkscape-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/arc-context.h')
| -rw-r--r-- | src/arc-context.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/arc-context.h b/src/arc-context.h index 3e4f5412d..7ad84f8a4 100644 --- a/src/arc-context.h +++ b/src/arc-context.h @@ -27,7 +27,12 @@ #define SP_IS_ARC_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), SP_TYPE_ARC_CONTEXT)) #define SP_IS_ARC_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), SP_TYPE_ARC_CONTEXT)) -struct SPArcContext : public SPEventContext { +class CArcContext; + +class SPArcContext : public SPEventContext { +public: + CArcContext* carccontext; + SPItem *item; Geom::Point center; @@ -40,6 +45,19 @@ struct SPArcContextClass { SPEventContextClass parent_class; }; +class CArcContext : public CEventContext { +public: + CArcContext(SPArcContext* arccontext); + + virtual void setup(); + virtual void finish(); + virtual gint root_handler(GdkEvent* event); + virtual gint item_handler(SPItem* item, GdkEvent* event); + +private: + SPArcContext* sparccontext; +}; + /* Standard Gtk function */ GType sp_arc_context_get_type(void); |
