aboutsummaryrefslogtreecommitdiff
path: root/cutter.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-15 14:31:57 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-15 14:31:57 +0200
commit3b119e80968d9267da4753687a6740d1189daa80 (patch)
treed053ec4b02132e17d196bf8553dd68d42f7d8f9f /cutter.go
parented5812bfb8e7092fe4f6446abf957e8dbc80be21 (diff)
Reorganize definitions
Diffstat (limited to 'cutter.go')
-rw-r--r--cutter.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/cutter.go b/cutter.go
index 4abc479..bc78a9c 100644
--- a/cutter.go
+++ b/cutter.go
@@ -30,8 +30,6 @@ import (
Usable: 4000x5440 pt
*/
-var A4 = Point{272 * MM, 200 * MM} // Portrait
-
type Cutter struct {
*bufio.ReadWriter
}
@@ -159,20 +157,6 @@ func (c Cutter) MoveRelative(p Point) {
c.Send("O", p)
}
-type LineStyle int
-
-const (
- Solid LineStyle = iota
- Dots
- ShortDash
- Dash
- LongDash
- DashDot
- DashLongDot
- DashDoubleDot
- DashLongDoubleDot
-)
-
const (
Custom1 LineStyle = iota + 100 // 2 args ? --a-- b --a--
Custom2 // 3 args ? --a-- b -c- b -c- b --a--
@@ -355,13 +339,6 @@ func (c Cutter) Wait() {
}
}
-type Orientation int
-
-const (
- Portrait Orientation = iota
- Landscape
-)
-
func (c Cutter) Orientation(l Orientation) {
c.Send("FN", l)
}