31#define ASSIGN(field) { if (assign_to_set) { field._set = true; } }
C height() const
Get the vertical extent of the rectangle.
C width() const
Get the horizontal extent of the rectangle.
Interface for refcounted XML nodes.
void setAttribute(Util::const_char_ptr key, Util::const_char_ptr value)
Change an attribute of this node.
void calcDimsFromParentViewport(const SPItemCtx *ictx, bool assign_to_set=false, SPDimensions const *use=nullptr)
Update computed x/y/width/height for "percent" units and/or from its referencing clone parent.
void writeDimensions(Inkscape::XML::Node *) const
Write the geometric properties (x/y/width/height) to XML attributes, if they are set.
Some things pertinent to all visible shapes: SPItem, SPItemView, SPItemCtx.
Contains transformations to document/viewport and the viewport size.
Geom::Rect viewport
Viewport size.
std::string sp_svg_length_write_with_units(SVGLength const &length)
N.B. This routine will sometimes return strings with āeā notation, so is unsuitable for CSS lengths (...