aboutsummaryrefslogtreecommitdiff
path: root/cutter.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-04-23 02:00:02 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-04-23 02:00:02 +0200
commit5cccd9dd5befd33d643d08fea3598ff6df81a8bf (patch)
treea79cd6c3bccb75c5a5a22abd8cf513cfbf450f93 /cutter.go
parent3cb50e86ab3fcbbef32e8f524797a390e3377e34 (diff)
Add page
Diffstat (limited to 'cutter.go')
-rw-r--r--cutter.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cutter.go b/cutter.go
index cffe0c6..5a3507c 100644
--- a/cutter.go
+++ b/cutter.go
@@ -192,14 +192,14 @@ func (c Cutter) Bezier(a int, p0, p1, p2, p3 Point) {
fmt.Fprintf(c, "BZ%v,%v,%v,%v,%v", a, p0, p1, p2, p3)
}
-type Page int
+type Orientation int
const (
- Portrait Page = iota
+ Portrait Orientation = iota
Landscape
)
-func (c Cutter) Orientation(l Page) {
+func (c Cutter) Orientation(l Orientation) {
defer c.EOT()
fmt.Fprint(c, "FN", l)
}