6663b6c9
adorian
projet complet av...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include "pattern.h"
namespace HardwareTest {
constexpr KDColor Pattern::k_fillColors[Pattern::k_numberOfPatterns];
constexpr KDColor Pattern::k_outlineColors[Pattern::k_numberOfPatterns];
int Pattern::numberOfPatterns() {
return k_numberOfPatterns;
}
Pattern Pattern::patternAtIndex(int i) {
return Pattern(i);
}
KDColor Pattern::fillColor() const {
return k_fillColors[m_i];
}
KDColor Pattern::outlineColor() const {
return k_outlineColors[m_i];
}
Pattern::Pattern(int i) :
m_i(i)
{
}
}
|