about summary refs log tree commit diff stats
path: root/src/types/canvastypes.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/canvastypes.nim')
-rw-r--r--src/types/canvastypes.nim15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/types/canvastypes.nim b/src/types/canvastypes.nim
new file mode 100644
index 00000000..350d8cbb
--- /dev/null
+++ b/src/types/canvastypes.nim
@@ -0,0 +1,15 @@
+type
+  CanvasFillRule* = enum
+    cfrNonZero = "nonzero"
+    cfrEvenOdd = "evenodd"
+
+  PaintCommand* = enum
+    pcSetDimensions, pcFillRect, pcStrokeRect, pcFillPath, pcStrokePath,
+    pcFillText, pcStrokeText
+
+  CanvasTextAlign* = enum
+    ctaStart = "start"
+    ctaEnd = "end"
+    ctaLeft = "left"
+    ctaRight = "right"
+    ctaCenter = "center"