diff options
Diffstat (limited to 'src/object/sp-item.h')
| -rw-r--r-- | src/object/sp-item.h | 26 |
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 { |
