Code

Patch from codedread. Prevents rendering of title/desc/metadata elements in text...
[inkscape.git] / src / display / nr-filter-image.h
index cad5d4ee12d6126b2ee310b1350be80d2b94d1ca..42e7f089aca77d25fc84117595b969d002f109a7 100644 (file)
@@ -14,7 +14,9 @@
 
 #include "display/nr-filter-primitive.h"
 #include "display/nr-filter-slot.h"
+#include "display/nr-filter-units.h"
 #include <gtkmm.h>
+#include "sp-item.h"
 
 namespace NR {
 
@@ -24,12 +26,21 @@ public:
     static FilterPrimitive *create();
     virtual ~FilterImage();
 
-    virtual int render(FilterSlot &slot, Matrix const &trans);
+    virtual int render(FilterSlot &slot, FilterUnits const &units);
+    virtual FilterTraits get_input_traits();
+    void set_document( SPDocument *document );
+    void set_href(const gchar *href);
+    void set_region(SVGLength x, SVGLength y, SVGLength width, SVGLength height);
+    bool from_element;
+    SPItem* SVGElem;
 
 private:
+    SPDocument *document;
+    gchar *feImageHref;
     guint8* image_pixbuf;
     Glib::RefPtr<Gdk::Pixbuf> image;
-    int width, height;
+    int width, height, rowstride;
+    float feImageX,feImageY,feImageWidth,feImageHeight;
 };
 
 } /* namespace NR */