sp-mask.h revision a38486bc344eef12a82b91b0d292516f8cdbcaf5
#ifndef SEEN_SP_MASK_H
#define SEEN_SP_MASK_H
/*
* SVG <mask> implementation
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Abhishek Sharma
*
* Copyright (C) 2003 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "sp-object-group.h"
#include "uri-references.h"
struct SPMaskView;
} // namespace Inkscape
SPMask();
unsigned int maskUnits_set : 1;
unsigned int maskUnits : 1;
unsigned int maskContentUnits_set : 1;
unsigned int maskContentUnits : 1;
void sp_mask_hide(unsigned int key);
virtual Inkscape::XML::Node* write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, unsigned int flags);
};
}
/**
* If the owner element of this reference (the element with <... mask="...">)
* is a child of the mask it refers to, return false.
* \return false if obj is not a mask or if obj is a parent of this
* reference's owner element. True otherwise.
*/
if (!SP_IS_MASK(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...
char const * owner_name = NULL;
char const * owner_mask = NULL;
if (owner_repr != NULL) {
}
}
printf("WARNING: Ignoring recursive mask reference "
"<%s mask=\"%s\"> in <%s id=\"%s\">",
return false;
}
return true;
}
};
const char *sp_mask_create (std::vector<Inkscape::XML::Node*> &reprs, SPDocument *document, Geom::Affine const* applyTransform);
#endif // SEEN_SP_MASK_H