sp-clippath.h revision ef610fdbfb424e7ad204ac9de142c05bb986e1dc
#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_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;
static const gchar *create (GSList *reprs, SPDocument *document, Geom::Matrix const* applyTransform);
static GType sp_clippath_get_type (void);
void sp_clippath_hide(unsigned int key);
static void sp_clippath_child_added(SPObject *object, Inkscape::XML::Node *child, Inkscape::XML::Node *ref);
static Inkscape::XML::Node *sp_clippath_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags);
};
static SPObjectGroupClass *static_parent_class;
};
//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;
}
};
/*NRArenaItem *sp_clippath_show(SPClipPath *cp, NRArena *arena, unsigned int key);
void sp_clippath_hide(SPClipPath *cp, unsigned int key);
void sp_clippath_set_bbox(SPClipPath *cp, unsigned int key, NRRect *bbox);
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