--- /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; +};