src/types/pattern.h

branch
experimental
changeset 1363
b725b7fb63a5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/types/pattern.h	Thu Mar 29 12:10:54 2018 +0300
@@ -0,0 +1,19 @@
+#pragma once
+#include <QPolygonF>
+#include "../main.h"
+
+struct ColoredPolygon
+{
+	QPolygonF geometry;
+	LDColor color;
+
+	ColoredPolygon(const QPolygonF& polygon, LDColor color);
+};
+
+struct Pattern
+{
+	Pattern(const QSizeF& size);
+
+	QVector<ColoredPolygon> polygons;
+	QSizeF canvasSize;
+};

mercurial