Code

Split SPCanvasItem and SPCanvasGroup to individual .h files. Removed forward header.
[inkscape.git] / src / sp-image.h
index 500d9699eb1e52caa477bf90f28fce11e08391a1..9618c98738d1ffef786953457451d7f79fe42ba1 100644 (file)
@@ -26,35 +26,46 @@ class SPImageClass;
 /* SPImage */
 
 #include <gdk-pixbuf/gdk-pixbuf.h>
+#include <glibmm/ustring.h>
 #include "svg/svg-length.h"
 #include "sp-item.h"
 
 #define SP_IMAGE_HREF_MODIFIED_FLAG SP_OBJECT_USER_MODIFIED_FLAG_A
 
 struct SPImage : public SPItem {
-       SVGLength x;
-       SVGLength y;
-       SVGLength width;
-       SVGLength height;
+    SVGLength x;
+    SVGLength y;
+    SVGLength width;
+    SVGLength height;
 
-       // Added by EAF
-       /* preserveAspectRatio */
-       unsigned int aspect_align : 4;
-       unsigned int aspect_clip : 1;
-       int trimx, trimy, trimwidth, trimheight;
-       double viewx, viewy, viewwidth, viewheight;
+    // Added by EAF
+    /* preserveAspectRatio */
+    unsigned int aspect_align : 4;
+    unsigned int aspect_clip : 1;
+    int trimx, trimy, trimwidth, trimheight;
+    double viewx, viewy, viewwidth, viewheight;
 
-       gchar *href;
+    SPCurve *curve; // This curve is at the image's boundary for snapping
 
-       GdkPixbuf *pixbuf;
+    gchar *href;
+#if ENABLE_LCMS
+    gchar *color_profile;
+#endif // ENABLE_LCMS
+
+    GdkPixbuf *pixbuf;
+    gchar *pixPath;
+    time_t lastMod;
 };
 
 struct SPImageClass {
-       SPItemClass parent_class;
+    SPItemClass parent_class;
 };
 
 GType sp_image_get_type (void);
 
-
+/* Return duplicate of curve or NULL */
+SPCurve *sp_image_get_curve (SPImage *image);
+void sp_embed_image(Inkscape::XML::Node *imgnode, GdkPixbuf *pb, Glib::ustring const &mime);
+void sp_image_refresh_if_outdated( SPImage* image );
 
 #endif