diff options
| author | Tomasz Boczkowski <penginsbacon@gmail.com> | 2014-05-28 21:28:17 +0000 |
|---|---|---|
| committer | Tomasz Boczkowski <penginsbacon@gmail.com> | 2014-05-28 21:28:17 +0000 |
| commit | 4d75f1ecca2fcab4cbfec9fb84c5b1f3647dbc17 (patch) | |
| tree | b22a6e5def6be177faca885888aeda57fceba521 /src/sp-pattern.h | |
| parent | SPPattern c++-sification: removed unused declatations and includes (diff) | |
| download | inkscape-4d75f1ecca2fcab4cbfec9fb84c5b1f3647dbc17.tar.gz inkscape-4d75f1ecca2fcab4cbfec9fb84c5b1f3647dbc17.zip | |
SPPattern c++-sification: replaced function by methods
(bzr r13341.6.21)
Diffstat (limited to 'src/sp-pattern.h')
| -rw-r--r-- | src/sp-pattern.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/sp-pattern.h b/src/sp-pattern.h index f2a1e1c6c..0c468d8f7 100644 --- a/src/sp-pattern.h +++ b/src/sp-pattern.h @@ -77,6 +77,10 @@ public: SPPattern::PatternUnits get_pattern_units() const; SPPattern::PatternUnits get_pattern_content_units() const; Geom::Affine const &get_transform() const; + SPPattern *get_root(); //TODO: const + + SPPattern *clone_if_necessary(SPItem *item, const gchar *property); + void transform_multiply(Geom::Affine postmul, bool set); virtual cairo_pattern_t* pattern_new(cairo_t *ct, Geom::OptRect const &bbox, double opacity); @@ -89,6 +93,12 @@ protected: private: bool _has_item_children() const; + SPPattern *_chain() const; + + /** + Count how many times pat is used by the styles of o and its descendants + */ + guint _count_hrefs(SPObject* o) const; }; @@ -105,14 +115,9 @@ protected: } }; -SPPattern *pattern_chain (SPPattern *pattern); -SPPattern *sp_pattern_clone_if_necessary (SPItem *item, SPPattern *pattern, const gchar *property); -void sp_pattern_transform_multiply (SPPattern *pattern, Geom::Affine postmul, bool set); const gchar *pattern_tile (const std::list<Inkscape::XML::Node*> &reprs, Geom::Rect bounds, SPDocument *document, Geom::Affine transform, Geom::Affine move); -SPPattern *pattern_getroot (SPPattern *pat); - #endif // SEEN_SP_PATTERN_H |
