sp-mask.h revision a32fea2d5b3bdba0ac9474ef76d9b63e0ec164cc
#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 = "";
char const * owner_mask = "";
char const * obj_name = "";
char const * obj_id = "";
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