diff options
| author | Kees Cook <kees@outflux.net> | 2007-12-10 00:48:29 +0000 |
|---|---|---|
| committer | keescook <keescook@users.sourceforge.net> | 2007-12-10 00:48:29 +0000 |
| commit | c79a5c96989fa96d5ab3f63bb488ee70adb77fb7 (patch) | |
| tree | feecb11ba0b8fe0ce60840e4340831e81dbac691 /src/extension/internal/cairo-render-context.h | |
| parent | bump minimum required gtk to 2.10 (released july 2006), for future print dialog (diff) | |
| download | inkscape-c79a5c96989fa96d5ab3f63bb488ee70adb77fb7.tar.gz inkscape-c79a5c96989fa96d5ab3f63bb488ee70adb77fb7.zip | |
always build cairo backend; add interface for setting cairo surface to renderer
(bzr r4198)
Diffstat (limited to 'src/extension/internal/cairo-render-context.h')
| -rw-r--r-- | src/extension/internal/cairo-render-context.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/extension/internal/cairo-render-context.h b/src/extension/internal/cairo-render-context.h index dc1592a81..ff7ebec7f 100644 --- a/src/extension/internal/cairo-render-context.h +++ b/src/extension/internal/cairo-render-context.h @@ -17,8 +17,6 @@ # include "config.h" #endif -#ifdef HAVE_CAIRO_PDF - #include "extension/extension.h" #include <set> #include <string> @@ -90,6 +88,8 @@ public: given width, height and with the currently set target surface type. */ bool setupSurface(double width, double height); + /** Set the cairo_surface_t from an external source */ + bool setSurface(cairo_surface_t *surface); cairo_surface_t *getSurface(void); @@ -169,6 +169,7 @@ protected: unsigned int _showGlyphs(cairo_t *cr, PangoFont *font, std::vector<CairoGlyphInfo> const &glyphtext, bool is_stroke); + bool _finishSurfaceSetup(cairo_surface_t *surface); void _setFillStyle(SPStyle const *style, NRRect const *pbox); void _setStrokeStyle(SPStyle const *style, NRRect const *pbox); @@ -183,8 +184,6 @@ protected: } /* namespace Extension */ } /* namespace Inkscape */ -#endif /* HAVE_CAIRO_PDF */ - #endif /* !EXTENSION_INTERNAL_CAIRO_RENDER_CONTEXT_H_SEEN */ /* |
