diff --git a/src/sp-image.h b/src/sp-image.h
index e0546d63d5057365374d855e0a43794204143e53..7b00e0da360601240f871a23e8d2027b360ed6d0 100644 (file)
--- a/src/sp-image.h
+++ b/src/sp-image.h
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "svg/svg-length.h"
#include "sp-item.h"
+#include "display/display-forward.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;
-
- // 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;
+ 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;
+
+ SPCurve *curve; // This curve is at the image's boundary for snapping
+
+ gchar *href;
#if ENABLE_LCMS
- gchar *color_profile;
+ gchar *color_profile;
#endif // ENABLE_LCMS
- GdkPixbuf *pixbuf;
+ 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_image_refresh_if_outdated( SPImage* image );
#endif