diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-06-29 22:41:48 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-06-29 22:41:48 +0000 |
| commit | 13b15b7b977eecbededd1734f5ab001f0c44d21f (patch) | |
| tree | f4e1d29f1f5deafa0c5ed2b17c88c1682a378194 /src/display/cairo-utils.h | |
| parent | Fix icons (diff) | |
| download | inkscape-13b15b7b977eecbededd1734f5ab001f0c44d21f.tar.gz inkscape-13b15b7b977eecbededd1734f5ab001f0c44d21f.zip | |
Consolidate Cairo utils in display/cairo-utils.h. Fix icons harder.
(bzr r9508.1.8)
Diffstat (limited to 'src/display/cairo-utils.h')
| -rw-r--r-- | src/display/cairo-utils.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/display/cairo-utils.h b/src/display/cairo-utils.h index feed987bd..882742d5f 100644 --- a/src/display/cairo-utils.h +++ b/src/display/cairo-utils.h @@ -13,9 +13,12 @@ #define SEEN_INKSCAPE_DISPLAY_CAIRO_UTILS_H #include <glib.h> +#include <gdk-pixbuf/gdk-pixbuf.h> #include <cairomm/cairomm.h> #include <2geom/forward.h> +struct SPColor; + namespace Inkscape { /** @brief RAII idiom for Cairo groups. @@ -75,6 +78,20 @@ public: } // namespace Inkscape +void ink_cairo_set_source_color(cairo_t *ct, SPColor const &color, double opacity); +void ink_cairo_set_source_rgba32(cairo_t *ct, guint32 rgba); +void ink_cairo_transform(cairo_t *ct, Geom::Matrix const &m); +void ink_cairo_pattern_set_matrix(cairo_pattern_t *cp, Geom::Matrix const &m); + +void convert_pixels_pixbuf_to_argb32(guchar *data, int w, int h, int rs); +void convert_pixels_argb32_to_pixbuf(guchar *data, int w, int h, int rs); +void convert_pixbuf_normal_to_argb32(GdkPixbuf *); +void convert_pixbuf_argb32_to_normal(GdkPixbuf *); + +// TODO: move those to 2Geom +void feed_pathvector_to_cairo (cairo_t *ct, Geom::PathVector const &pathv, Geom::Matrix trans, Geom::OptRect area, bool optimize_stroke, double stroke_width); +void feed_pathvector_to_cairo (cairo_t *ct, Geom::PathVector const &pathv); + #endif /* Local Variables: |
