summaryrefslogtreecommitdiffstats
path: root/src/pen-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/pen-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/pen-context.h')
-rw-r--r--src/pen-context.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/pen-context.h b/src/pen-context.h
index a68b76ff5..ae50cba53 100644
--- a/src/pen-context.h
+++ b/src/pen-context.h
@@ -28,10 +28,15 @@ enum {
struct SPCtrlLine;
+class CPenContext;
+
/**
* SPPenContext: a context for pen tool events.
*/
-struct SPPenContext : public SPDrawContext {
+class SPPenContext : public SPDrawContext {
+public:
+ CPenContext* cpencontext;
+
Geom::Point p[5];
/** \invar npoints in {0, 2, 5}. */
@@ -61,6 +66,20 @@ struct SPPenContext : public SPDrawContext {
/// The SPPenContext vtable (empty).
struct SPPenContextClass : public SPEventContextClass { };
+class CPenContext : public CDrawContext {
+public:
+ CPenContext(SPPenContext* pencontext);
+
+ 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);
+
+private:
+ SPPenContext* sppencontext;
+};
+
GType sp_pen_context_get_type();
inline bool sp_pen_context_has_waiting_LPE(SPPenContext *pc) {