summaryrefslogtreecommitdiffstats
path: root/src/rect-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/rect-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/rect-context.h')
-rw-r--r--src/rect-context.h22
1 files changed, 21 insertions, 1 deletions
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);