X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fsp-image.h;h=9618c98738d1ffef786953457451d7f79fe42ba1;hb=0dc33d4ce43e0bb49c63aa53b826ec4a1ff68e28;hp=500d9699eb1e52caa477bf90f28fce11e08391a1;hpb=6b15695578f07a3f72c4c9475c1a261a3021472a;p=inkscape.git diff --git a/src/sp-image.h b/src/sp-image.h index 500d9699e..9618c9873 100644 --- a/src/sp-image.h +++ b/src/sp-image.h @@ -26,35 +26,46 @@ class SPImageClass; /* SPImage */ #include +#include #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