Numworks Epsilon  1.4.1
Graphing Calculator Operating System
pattern.h
Go to the documentation of this file.
1 #ifndef HARDWARE_TEST_PATTERN_H
2 #define HARDWARE_TEST_PATTERN_H
3 
4 #include <escher.h>
5 
6 namespace HardwareTest {
7 
8 class Pattern {
9 public:
10  static int numberOfPatterns();
11  static Pattern patternAtIndex(int i);
12  KDColor fillColor() const;
13  KDColor outlineColor() const;
14 private:
15  Pattern(int i);
16  int m_i;
17  constexpr static int k_numberOfPatterns = 5;
18  constexpr static KDColor k_fillColors[k_numberOfPatterns] = {KDColorBlack, KDColorRed, KDColorBlue, KDColorGreen, KDColorWhite};
19  constexpr static KDColor k_outlineColors[k_numberOfPatterns] = {KDColorWhite, KDColorGreen, KDColorRed, KDColorRed, KDColorGreen};
20 };
21 
22 }
23 
24 #endif
25 
constexpr KDColor KDColorBlue
Definition: color.h:45
static Pattern patternAtIndex(int i)
Definition: pattern.cpp:12
static int numberOfPatterns()
Definition: pattern.cpp:8
constexpr KDColor KDColorWhite
Definition: color.h:42
constexpr KDColor KDColorBlack
Definition: color.h:41
Definition: color.h:6
constexpr KDColor KDColorRed
Definition: color.h:43
constexpr KDColor KDColorGreen
Definition: color.h:44
KDColor outlineColor() const
Definition: pattern.cpp:20
KDColor fillColor() const
Definition: pattern.cpp:16