From e58cac52b258e64c2cc88b0044bf9cfbaecedce2 Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Tue, 9 Apr 2013 00:23:07 +0200 Subject: Started conversion of SPEventContext tree; added virtual pads to all classes. (bzr r11608.1.89) --- src/rect-context.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src/rect-context.h') diff --git a/src/rect-context.h b/src/rect-context.h index 5b6c5373e..2001716ba 100644 --- a/src/rect-context.h +++ b/src/rect-context.h @@ -25,7 +25,12 @@ #define SP_IS_RECT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_RECT_CONTEXT)) #define SP_IS_RECT_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_RECT_CONTEXT)) -struct SPRectContext : public SPEventContext { +class CRectContext; + +class SPRectContext : public SPEventContext { +public: + CRectContext* crectcontext; + SPItem *item; Geom::Point center; @@ -41,6 +46,21 @@ struct SPRectContextClass { SPEventContextClass parent_class; }; +class CRectContext : public CEventContext { +public: + CRectContext(SPRectContext* rectcontext); + + virtual void setup(); + virtual void finish(); + virtual void set(Inkscape::Preferences::Entry* val); + virtual gint root_handler(GdkEvent* event); + virtual gint item_handler(SPItem* item, GdkEvent* event); + +protected: + SPRectContext* sprectcontext; +}; + + /* Standard Gtk function */ GType sp_rect_context_get_type (void); -- cgit v1.2.3