diff options
Diffstat (limited to 'src/types/canvastypes.nim')
-rw-r--r-- | src/types/canvastypes.nim | 15 |
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" |