summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/cairo-render-context.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-06-26 15:32:30 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-06-26 15:32:30 +0000
commit7cc98c191a5362926daae7b31e36f8ae709d9b60 (patch)
treeee62ba5adff150bb9dbcfe60f96f07a5787b4371 /src/extension/internal/cairo-render-context.cpp
parentdon't use splivarot to get livarot path, just use LoadPathVector method (diff)
downloadinkscape-7cc98c191a5362926daae7b31e36f8ae709d9b60.tar.gz
inkscape-7cc98c191a5362926daae7b31e36f8ae709d9b60.zip
add CairoRenderContext::renderPathVector
(bzr r6074)
Diffstat (limited to 'src/extension/internal/cairo-render-context.cpp')
-rw-r--r--src/extension/internal/cairo-render-context.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp
index 3ec94af63..b19e4b316 100644
--- a/src/extension/internal/cairo-render-context.cpp
+++ b/src/extension/internal/cairo-render-context.cpp
@@ -34,6 +34,8 @@
#include <libnr/nr-matrix-scale-ops.h>
#include <libnr/nr-matrix-translate-ops.h>
#include <libnr/nr-scale-matrix-ops.h>
+#include <libnr/n-art-bpath-2geom.h>
+#include <2geom/pathvector.h>
#include <glib/gmem.h>
@@ -1245,6 +1247,17 @@ CairoRenderContext::_setStrokeStyle(SPStyle const *style, NRRect const *pbox)
}
bool
+CairoRenderContext::renderPathVector(Geom::PathVector const & pathv, SPStyle const *style, NRRect const *pbox)
+{
+ NArtBpath * bpath = BPath_from_2GeomPath (pathv);
+ const_NRBPath *bp;
+ bp->path = bpath;
+ bool retvalue = renderPath(bp, style, pbox);
+ g_free(bpath);
+ return retvalue;
+}
+
+bool
CairoRenderContext::renderPath(const_NRBPath const *bpath, SPStyle const *style, NRRect const *pbox)
{
g_assert( _is_valid );