Lines Matching defs:rect
52 #include "sp-rect.h"
3360 Inkscape::XML::Node *rect = xml_doc->createElement("svg:rect");
3362 rect->setAttribute("style", style_str);
3368 sp_repr_set_svg_double(rect, "width", max[Geom::X] - min[Geom::X]);
3369 sp_repr_set_svg_double(rect, "height", max[Geom::Y] - min[Geom::Y]);
3370 sp_repr_set_svg_double(rect, "x", min[Geom::X]);
3371 sp_repr_set_svg_double(rect, "y", min[Geom::Y]);
3374 parent->getRepr()->appendChild(rect);
3375 rect->setPosition(pos > 0 ? pos : 0);
3376 SPItem *rectangle = static_cast<SPItem *>(desktop->getDocument()->getObjectByRepr(rect));
3378 Inkscape::GC::release(rect);