Blame view

build1/epsilon-master/apps/hardware_test/pattern_view.h 395 Bytes
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
  #ifndef HARDWARE_TEST_PATTERN_VIEW_H
  #define HARDWARE_TEST_PATTERN_VIEW_H
  
  #include <escher.h>
  #include "pattern.h"
  
  namespace HardwareTest {
  
  class PatternView : public View {
  public:
    PatternView();
    void setPattern(Pattern p);
    void drawRect(KDContext * ctx, KDRect rect) const override;
  private:
    constexpr static KDCoordinate k_outlineThickness = 1;
    Pattern m_pattern;
  };
  
  }
  
  #endif