17#include <glibmm/i18n.h>
73 if (flags & (SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG | SP_OBJECT_VIEWPORT_MODIFIED_FLAG)) {
79 double const ex = em * 0.5;
93 if ((flags & SP_OBJECT_WRITE_BUILD) && !
repr) {
Lookup dictionary for attributes/properties.
3x3 matrix representing an affine transformation.
Coord descrim() const
Calculate the descriminant.
C height() const
Get the vertical extent of the rectangle.
C width() const
Get the horizontal extent of the rectangle.
Two-dimensional point that doubles as a vector.
Interface for refcounted XML nodes.
virtual void mergeFrom(Node const *src, char const *key, bool extension=false, bool clean=false)=0
Merge all children of another node with the current.
bool setAttributeSvgDouble(Util::const_char_ptr key, double val)
For attributes where an exponent is allowed.
Wrapper around a Geom::PathVector object.
void moveto(Geom::Point const &p)
Perform a moveto to a point, thus starting a new subpath.
Typed SVG document implementation.
static SPGuide * createSPGuide(SPDocument *doc, Geom::Point const &pt1, Geom::Point const &pt2)
Geom::Affine i2dt_affine() const
Returns the transformation from item to desktop coords.
void adjust_stroke(double ex)
void set_shape() override
void set(SPAttr key, char const *value) override
void convert_to_guides() const override
void update(SPCtx *ctx, unsigned int flags) override
const char * typeName() const override
The item's type name, not node tag name.
Geom::Affine set_transform(Geom::Affine const &transform) override
const char * displayName() const override
The item's type name as a translated human string.
void build(SPDocument *document, Inkscape::XML::Node *repr) override
Inkscape::XML::Node * write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned int flags) override
Inkscape::XML::Node * repr
SPStyle * style
Represents the style properties, whether from presentation attributes, the style attribute,...
void readAttr(char const *key)
Read value of key attribute from XML node into object.
Inkscape::XML::Node * getRepr()
Returns the XML representation of tree.
void requestDisplayUpdate(unsigned int flags)
Queues an deferred update of this object's display.
Base class for shapes, including <path> element.
SPCurve const * curve() const
Return a borrowed pointer to the curve (if any exists) or NULL if there is no curve.
void update(SPCtx *ctx, unsigned int flags) override
void setCurveInsync(SPCurve const *)
void set(SPAttr key, char const *value) override
void setCurveBeforeLPE(SPCurve const *)
void build(SPDocument *document, Inkscape::XML::Node *repr) override
Inkscape::XML::Node * write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned int flags) override
T< SPAttr::FONT_SIZE, SPIFontSize > font_size
Size of the font.
void readOrUnset(char const *str, Unit u=NONE, float v=0, float c=0)
void unset(Unit u=NONE, float v=0, float c=0)
void update(double em, double ex, double scale)
Affine identity()
Create an identity matrix.
static cairo_user_data_key_t key
Interface for XML documents.
virtual Node * createElement(char const *name)=0
Contains transformations to document/viewport and the viewport size.
Geom::Rect viewport
Viewport size.
SPStyle - a style object for SPItem objects.