Lines Matching refs:repr
6 #include "xml/repr.h"
21 void SPLinearGradient::build(SPDocument *document, Inkscape::XML::Node *repr) {
22 SPGradient::build(document, repr);
62 * Callback: write attributes to associated repr.
64 Inkscape::XML::Node* SPLinearGradient::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) {
65 if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) {
66 repr = xml_doc->createElement("svg:linearGradient");
70 sp_repr_set_svg_double(repr, "x1", this->x1.computed);
74 sp_repr_set_svg_double(repr, "y1", this->y1.computed);
78 sp_repr_set_svg_double(repr, "x2", this->x2.computed);
82 sp_repr_set_svg_double(repr, "y2", this->y2.computed);
85 SPGradient::write(xml_doc, repr, flags);
87 return repr;