diff options
Diffstat (limited to 'src/object/sp-hatch.h')
| -rw-r--r-- | src/object/sp-hatch.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/object/sp-hatch.h b/src/object/sp-hatch.h index 446be0357..f548163a1 100644 --- a/src/object/sp-hatch.h +++ b/src/object/sp-hatch.h @@ -42,6 +42,9 @@ class Node; } } +#define SP_HATCH(obj) (dynamic_cast<SPHatch *>((SPObject *)obj)) +#define SP_IS_HATCH(obj) (dynamic_cast<const SPHatch *>((SPObject *)obj) != NULL) + class SPHatch : public SPPaintServer { public: enum HatchUnits { @@ -82,6 +85,9 @@ public: std::vector<SPHatchPath *> hatchPaths(); std::vector<SPHatchPath const *> hatchPaths() const; + SPHatch *clone_if_necessary(SPItem *item, const gchar *property); + void transform_multiply(Geom::Affine postmul, bool set); + bool isValid() const override; Inkscape::DrawingPattern *show(Inkscape::Drawing &drawing, unsigned int key, Geom::OptRect bbox) override; @@ -124,6 +130,10 @@ private: RenderInfo _calculateRenderInfo(View const &view) const; Geom::OptInterval _calculateStripExtents(Geom::OptRect const &bbox) const; + /** + Count how many times hatch is used by the styles of o and its descendants + */ + guint _countHrefs(SPObject *o) const; /** * Gets called when the hatch is reattached to another <hatch> |
