aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/llgcode/draw2d/draw2dpdf/vectorizer.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/llgcode/draw2d/draw2dpdf/vectorizer.go')
-rw-r--r--vendor/github.com/llgcode/draw2d/draw2dpdf/vectorizer.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/github.com/llgcode/draw2d/draw2dpdf/vectorizer.go b/vendor/github.com/llgcode/draw2d/draw2dpdf/vectorizer.go
new file mode 100644
index 0000000..556c2e0
--- /dev/null
+++ b/vendor/github.com/llgcode/draw2d/draw2dpdf/vectorizer.go
@@ -0,0 +1,22 @@
+// Copyright 2015 The draw2d Authors. All rights reserved.
+// created: 26/06/2015 by Stani Michiels
+
+package draw2dpdf
+
+// Vectorizer defines the minimal interface for gofpdf.Fpdf
+// to be passed to a PathConvertor.
+// It is also implemented by for example VertexMatrixTransform
+type Vectorizer interface {
+ // MoveTo creates a new subpath that start at the specified point
+ MoveTo(x, y float64)
+ // LineTo adds a line to the current subpath
+ LineTo(x, y float64)
+ // CurveTo adds a quadratic bezier curve to the current subpath
+ CurveTo(cx, cy, x, y float64)
+ // CurveTo adds a cubic bezier curve to the current subpath
+ CurveBezierCubicTo(cx1, cy1, cx2, cy2, x, y float64)
+ // ArcTo adds an arc to the current subpath
+ ArcTo(x, y, rx, ry, degRotate, degStart, degEnd float64)
+ // ClosePath closes the subpath
+ ClosePath()
+}