sp-image.h revision b808a361578e6408523ba4da6534d841fdb31b39
/** @file
* SVG <image> implementation
*//*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Edward Flick (EAF)
*
* Copyright (C) 1999-2005 Authors
* Copyright (C) 2000-2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef SEEN_INKSCAPE_SP_IMAGE_H
#define SEEN_INKSCAPE_SP_IMAGE_H
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "svg/svg-length.h"
#include "sp-shape.h"
SPImage();
SVGLength x;
SVGLength y;
// Added by EAF
/* preserveAspectRatio */
unsigned int aspect_align : 4;
unsigned int aspect_clip : 1;
//int trimx, trimy, trimwidth, trimheight;
//double viewx, viewy, viewwidth, viewheight;
#if defined(HAVE_LIBLCMS1) || defined(HAVE_LIBLCMS2)
#endif // defined(HAVE_LIBLCMS1) || defined(HAVE_LIBLCMS2)
// When image is a raster image, we use pixbuf
// When it's an svg file, we use an SPItem similar to sp-use
virtual Inkscape::XML::Node* write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags);
virtual const char* displayName() const;
virtual Inkscape::DrawingItem* show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags);
virtual void snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) const;
void clear_image();
};
/* Return duplicate of curve or NULL */
#endif