Numworks Epsilon  1.4.1
Graphing Calculator Operating System
pattern_view.h
Go to the documentation of this file.
1 #ifndef HARDWARE_TEST_PATTERN_VIEW_H
2 #define HARDWARE_TEST_PATTERN_VIEW_H
3 
4 #include <escher.h>
5 #include "pattern.h"
6 
7 namespace HardwareTest {
8 
9 class PatternView : public View {
10 public:
11  PatternView();
12  void setPattern(Pattern p);
13  void drawRect(KDContext * ctx, KDRect rect) const override;
14 private:
15  constexpr static KDCoordinate k_outlineThickness = 1;
16  Pattern m_pattern;
17 };
18 
19 }
20 
21 #endif
22 
int16_t KDCoordinate
Definition: coordinate.h:6
void drawRect(KDContext *ctx, KDRect rect) const override
Definition: rect.h:26
void setPattern(Pattern p)
Definition: view.h:23