sp-clippath.h revision 39e454bdef986f01ef929a38513fc09b4ae80e32
#ifndef __SP_CLIPPATH_H__
#define __SP_CLIPPATH_H__
/*
* SVG <clipPath> implementation
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 2001-2002 authors
* Copyright (C) 2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#define SP_TYPE_CLIPPATH (sp_clippath_get_type ())
#define SP_CLIPPATH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_CLIPPATH, SPClipPathClass))
#include "display/nr-arena-forward.h"
#include "libnr/nr-forward.h"
#include "sp-object-group.h"
#include "uri-references.h"
unsigned int clipPathUnits_set : 1;
unsigned int clipPathUnits : 1;
};
struct SPClipPathClass {
};
GType sp_clippath_get_type (void);
SPClipPath *getObject() const {
}
/**
* If the owner element of this reference (the element with <... clippath="...">)
* is a child of the clippath it refers to, return false.
* \return false if obj is not a clippath or if obj is a parent of this
* reference's owner element. True otherwise.
*/
if (!SP_IS_CLIPPATH(obj)) {
return false;
}
//XML Tree being used directly here while it shouldn't be...
//XML Tree being used directly here while it shouldn't be...
if (owner_repr != NULL) {
}
}
g_warning("Ignoring recursive clippath reference "
"<%s clippath=\"%s\"> in <%s id=\"%s\">",
return false;
}
return true;
}
};
void sp_clippath_get_bbox(SPClipPath *cp, NRRect *bbox, Geom::Matrix const &transform, unsigned const flags);
const gchar *sp_clippath_create (GSList *reprs, SPDocument *document, Geom::Matrix const* applyTransform);
#endif