Code

svg-filters branch merged back to head
[inkscape.git] / src / style.h
index 703a55fdb9c8bfb3b0b2e69b66927a036c291088..3c070a22a6714281e644d6059ea1e42a8e94f122 100644 (file)
@@ -16,6 +16,7 @@
 #include "color.h"
 #include "forward.h"
 #include "sp-marker-loc.h"
+#include "sp-filter.h"
 
 namespace Inkscape {
 namespace XML {
@@ -166,6 +167,14 @@ struct SPIPaint {
     SVGICCColor *iccColor;
 };
 
+/// Filter type internal to SPStyle
+struct SPIFilter {
+    unsigned set : 1;
+    unsigned inherit : 1;
+    SPFilter *filter;
+    gchar *uri;
+};
+
 enum {
     SP_FONT_SIZE_LITERAL,
     SP_FONT_SIZE_LENGTH,
@@ -322,6 +331,9 @@ struct SPStyle {
     /** Marker list */
     SPIString marker[SP_MARKER_LOC_QTY];
 
+    /** Filter effect */
+    SPIFilter filter;
+
     /// style belongs to a cloned object, must not href anything
     bool cloned; 
     /// style has hreffed its fill/stroke paintservers, needs to release.