Files
Upsilon/apps/hardware_test/pattern.h
Émilie Feral 67e1943679 [apps/hardware_test] Redesign app
Change-Id: If31db838918dd41c13970517bec59e3007b5f402
2017-05-22 16:35:27 +02:00

26 lines
634 B
C++

#ifndef HARDWARE_TEST_PATTERN_H
#define HARDWARE_TEST_PATTERN_H
#include <escher.h>
namespace HardwareTest {
class Pattern {
public:
static int numberOfPatterns();
static Pattern patternAtIndex(int i);
KDColor fillColor() const;
KDColor outlineColor() const;
private:
Pattern(int i);
int m_i;
constexpr static int k_numberOfPatterns = 5;
constexpr static KDColor k_fillColors[k_numberOfPatterns] = {KDColorBlack, KDColorRed, KDColorBlue, KDColorGreen, KDColorWhite};
constexpr static KDColor k_outlineColors[k_numberOfPatterns] = {KDColorWhite, KDColorGreen, KDColorRed, KDColorRed, KDColorGreen};
};
}
#endif