29 int tag()
const override {
return tag_of<
decltype(*this)>; }
44 void update(
SPCtx* ctx,
unsigned int flags)
override;
46 const char*
typeName()
const override;
constexpr int tag_of
Convenience function to retrieve the tag (class id) of a given type.
3x3 matrix representing an affine transformation.
Two-dimensional point that doubles as a vector.
Storing of snapping preferences.
Interface for refcounted XML nodes.
Typed SVG document implementation.
Inkscape::XML::Node * repr
Base class for shapes, including <path> element.
void update(SPCtx *ctx, unsigned int flags) override
char * description() const override
const char * typeName() const override
The item's type name, not node tag name.
void set_shape() override
void snappoints(std::vector< Inkscape::SnapCandidatePoint > &p, Inkscape::SnapPreferences const *snapprefs) const override
const char * displayName() const override
The item's type name as a translated human string.
void update_patheffect(bool write) override
Geom::Affine set_transform(Geom::Affine const &xform) override
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
double getSideLength() const
Calculate the average side length of the polygon.
void setSideLength(double length)
Set the average side length of the polygon.
static cairo_user_data_key_t key
void sp_star_position_set(SPStar *star, int sides, Geom::Point center, double r1, double r2, double arg1, double arg2, bool isflat, double rounded, double randomized)
Geom::Point sp_star_get_xy(SPStar const *star, SPStarPoint point, int index, bool randomized=false)
Interface for XML documents.