Blame view

Modif/epsilon-master/apps/hardware_test/arrow_view.h 531 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
22
23
24
  #ifndef HARDWARE_TEST_ARROW_VIEW_H
  #define HARDWARE_TEST_ARROW_VIEW_H
  
  #include <escher.h>
  
  namespace HardwareTest {
  
  class ArrowView : public TransparentView {
  public:
    ArrowView();
    void drawRect(KDContext * ctx, KDRect rect) const override;
    void setDirection(bool up);
    void setColor(KDColor color);
  private:
    constexpr static KDCoordinate k_arrowHeight = 10;
    constexpr static KDCoordinate k_arrowWidth = 9;
    constexpr static KDCoordinate k_arrowThickness = 3;
    bool m_directionIsUp;
    KDColor m_color;
  };
  
  }
  
  #endif