2#ifndef SEEN_SP_POLYGON_H
3#define SEEN_SP_POLYGON_H
24 int tag()
const override {
return tag_of<
decltype(*this)>; }
29 char const *
typeName()
const override;
constexpr int tag_of
Convenience function to retrieve the tag (class id) of a given type.
Interface for refcounted XML nodes.
Typed SVG document implementation.
Inkscape::XML::Node * repr
char * description() const override
char const * typeName() const override
The item's type name, not node tag name.
Inkscape::XML::Node * write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned int flags) override
void build(SPDocument *document, Inkscape::XML::Node *repr) override
Base class for shapes, including <path> element.
static cairo_user_data_key_t key
SPPolyParseError sp_poly_get_value(char const **p, double *v)
Parse a double from the string passed by pointer and advance the string start.
std::optional< Geom::Path > sp_poly_parse_curve(char const *points)
Parse a 'points' attribute, printing a warning when an error occurs.
Interface for XML documents.