sp-mask.cpp revision bd9c691d934ed2c727b54c8d3a658cbcddc97754
7042N/A#include "display/drawing-group.h"
7042N/A#include "attributes.h"
7042N/A#include "document.h"
7042N/A#include "document-private.h"
7042N/Astruct SPMaskView {
7042N/Astatic void sp_mask_build (SPObject *object, SPDocument *document, Inkscape::XML::Node *repr);
7042N/Astatic void sp_mask_child_added (SPObject *object, Inkscape::XML::Node *child, Inkscape::XML::Node *ref);
static Inkscape::XML::Node *sp_mask_write (SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags);
SPMaskView *sp_mask_view_new_prepend (SPMaskView *list, unsigned int key, Inkscape::DrawingItem *arenaitem);
sp_mask_get_type (void)
if (!type) {
sizeof (SPMaskClass),
sizeof (SPMask),
return type;
switch (key) {
case SP_ATTR_MASKUNITS:
if (value) {
case SP_ATTR_MASKCONTENTUNITS:
if (value) {
v->key,
if (ac) {
l = g_slist_reverse (l);
g->setChildTransform(t);
l = g_slist_reverse(l);
Inkscape::XML::Node* CMask::onWrite(Inkscape::XML::Document* xml_doc, Inkscape::XML::Node* repr, guint flags) {
return repr;
sp_mask_write (SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags)
const gchar *
return mask_id;
// CPPIFY: These methods are virtual in SPItem. So wouldn't it be better to derive SPMask from SPItem?
if (ac) {
return ai;
return new_mask_view;
return list;