summaryrefslogtreecommitdiffstats
path: root/src/object/sp-gradient.h
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-21 11:02:15 +0000
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-21 13:02:08 +0000
commit5c0d72139f0baf3463c6dcb939b58f8e6cb92610 (patch)
tree85da8ab0767a9a65184617d67b931262339867f4 /src/object/sp-gradient.h
parentMove global functions into SPPrintContext methods. (diff)
downloadinkscape-5c0d72139f0baf3463c6dcb939b58f8e6cb92610.tar.gz
inkscape-5c0d72139f0baf3463c6dcb939b58f8e6cb92610.zip
Move global functions into SPGradient methods.
Diffstat (limited to 'src/object/sp-gradient.h')
-rw-r--r--src/object/sp-gradient.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/object/sp-gradient.h b/src/object/sp-gradient.h
index 5d644925a..e03937c5b 100644
--- a/src/object/sp-gradient.h
+++ b/src/object/sp-gradient.h
@@ -185,6 +185,20 @@ public:
static void gradientRefModified(SPObject *href, unsigned int flags, SPGradient *gradient);
static void gradientRefChanged(SPObject *old_ref, SPObject *ref, SPGradient *gr);
+ /* Gradient repr methods */
+ void repr_write_vector();
+ void repr_clear_vector();
+
+ cairo_pattern_t *create_preview_pattern(double width);
+
+ /** Transforms to/from gradient position space in given environment */
+ Geom::Affine get_g2d_matrix(Geom::Affine const &ctm,
+ Geom::Rect const &bbox) const;
+ Geom::Affine get_gs2d_matrix(Geom::Affine const &ctm,
+ Geom::Rect const &bbox) const;
+ void set_gs2d_matrix(Geom::Affine const &ctm, Geom::Rect const &bbox,
+ Geom::Affine const &gs2d);
+
private:
bool invalidateVector();
bool invalidateArray();
@@ -209,20 +223,6 @@ sp_gradient_pattern_common_setup(cairo_pattern_t *cp,
Geom::OptRect const &bbox,
double opacity);
-/* Gradient repr methods */
-void sp_gradient_repr_write_vector(SPGradient *gr);
-void sp_gradient_repr_clear_vector(SPGradient *gr);
-
-cairo_pattern_t *sp_gradient_create_preview_pattern(SPGradient *gradient, double width);
-
-/** Transforms to/from gradient position space in given environment */
-Geom::Affine sp_gradient_get_g2d_matrix(SPGradient const *gr, Geom::Affine const &ctm,
- Geom::Rect const &bbox);
-Geom::Affine sp_gradient_get_gs2d_matrix(SPGradient const *gr, Geom::Affine const &ctm,
- Geom::Rect const &bbox);
-void sp_gradient_set_gs2d_matrix(SPGradient *gr, Geom::Affine const &ctm, Geom::Rect const &bbox,
- Geom::Affine const &gs2d);
-
#endif // SEEN_SP_GRADIENT_H