Code

Super duper mega (fun!) commit: replaced encoding=utf-8 with fileencoding=utf-8 in...
[inkscape.git] / src / sp-gradient-fns.h
1 #ifndef SEEN_SP_GRADIENT_FNS_H
2 #define SEEN_SP_GRADIENT_FNS_H
4 /** \file
5  * Macros and fn declarations related to gradients.
6  */
8 #include <glib/gtypes.h>
9 #include <glib-object.h>
10 #include <2geom/forward.h>
11 #include "sp-gradient-spread.h"
12 #include "sp-gradient-units.h"
14 class SPGradient;
16 SPGradientSpread sp_gradient_get_spread (SPGradient *gradient);
18 /* Gradient repr methods */
19 void sp_gradient_repr_write_vector(SPGradient *gr);
20 void sp_gradient_repr_clear_vector(SPGradient *gr);
22 void sp_gradient_render_vector_block_rgba(SPGradient *gr, guchar *px, gint w, gint h, gint rs, gint pos, gint span, bool horizontal);
23 void sp_gradient_render_vector_block_rgb(SPGradient *gr, guchar *px, gint w, gint h, gint rs, gint pos, gint span, bool horizontal);
25 /** Transforms to/from gradient position space in given environment */
26 Geom::Matrix sp_gradient_get_g2d_matrix(SPGradient const *gr, Geom::Matrix const &ctm,
27                                       Geom::Rect const &bbox);
28 Geom::Matrix sp_gradient_get_gs2d_matrix(SPGradient const *gr, Geom::Matrix const &ctm,
29                                        Geom::Rect const &bbox);
30 void sp_gradient_set_gs2d_matrix(SPGradient *gr, Geom::Matrix const &ctm, Geom::Rect const &bbox,
31                                  Geom::Matrix const &gs2d);
34 #endif /* !SEEN_SP_GRADIENT_FNS_H */
36 /*
37   Local Variables:
38   mode:c++
39   c-file-style:"stroustrup"
40   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
41   indent-tabs-mode:nil
42   fill-column:99
43   End:
44 */
45 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :