summaryrefslogtreecommitdiffstats
path: root/src/object/sp-item.h
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-11-29 12:35:01 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-11-29 12:35:01 +0000
commit04bb2839ce56feefb18fa5b2eb053501ef8f6edf (patch)
treea36e53c9bb58111475687c80b2e45ff45f6147db /src/object/sp-item.h
parentUpdate/correct README. (diff)
downloadinkscape-04bb2839ce56feefb18fa5b2eb053501ef8f6edf.tar.gz
inkscape-04bb2839ce56feefb18fa5b2eb053501ef8f6edf.zip
Start of making View independent of GUI.
Diffstat (limited to 'src/object/sp-item.h')
-rw-r--r--src/object/sp-item.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/object/sp-item.h b/src/object/sp-item.h
index 2bd8f2215..068571d85 100644
--- a/src/object/sp-item.h
+++ b/src/object/sp-item.h
@@ -46,15 +46,12 @@ class Drawing;
class DrawingItem;
class URIReference;
+namespace UI {
+namespace View {
+class View;
+}
+}
}
-
-enum {
- SP_EVENT_INVALID,
- SP_EVENT_NONE,
- SP_EVENT_ACTIVATE,
- SP_EVENT_MOUSEOVER,
- SP_EVENT_MOUSEOUT
-};
// TODO make a completely new function that transforms either the fill or
// stroke of any SPItem without adding an extra parameter to adjust_pattern.
@@ -75,9 +72,18 @@ enum PatternTransform {
*
*/
class SPEvent {
+
public:
- unsigned int type;
- void* data;
+ enum Type {
+ INVALID,
+ NONE,
+ ACTIVATE,
+ MOUSEOVER,
+ MOUSEOUT
+ };
+
+ Type type;
+ Inkscape::UI::View::View* view;
};
class SPItemView {