Thu, 29 Mar 2018 12:10:54 +0300
started work on the pattern editor
1363
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
1 | #pragma once |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
2 | #include <QPolygonF> |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
3 | #include "../main.h" |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
4 | |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
5 | struct ColoredPolygon |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
6 | { |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
7 | QPolygonF geometry; |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
8 | LDColor color; |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
9 | |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
10 | ColoredPolygon(const QPolygonF& polygon, LDColor color); |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
11 | }; |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
12 | |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
13 | struct Pattern |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
14 | { |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
15 | Pattern(const QSizeF& size); |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
16 | |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
17 | QVector<ColoredPolygon> polygons; |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
18 | QSizeF canvasSize; |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
19 | }; |