Numworks Epsilon  1.4.1
Graphing Calculator Operating System
arrow_view.h
Go to the documentation of this file.
1 #ifndef HARDWARE_TEST_ARROW_VIEW_H
2 #define HARDWARE_TEST_ARROW_VIEW_H
3 
4 #include <escher.h>
5 
6 namespace HardwareTest {
7 
8 class ArrowView : public View {
9 public:
10  ArrowView();
11  void drawRect(KDContext * ctx, KDRect rect) const override;
12  void setDirection(bool up);
13  void setColor(KDColor color);
14 private:
15  constexpr static KDCoordinate k_arrowHeight = 10;
16  constexpr static KDCoordinate k_arrowWidth = 9;
17  constexpr static KDCoordinate k_arrowThickness = 3;
18  bool m_directionIsUp;
19  KDColor m_color;
20 };
21 
22 }
23 
24 #endif
25 
int16_t KDCoordinate
Definition: coordinate.h:6
void drawRect(KDContext *ctx, KDRect rect) const override
Definition: arrow_view.cpp:53
void setDirection(bool up)
Definition: arrow_view.cpp:37
void setColor(KDColor color)
Definition: arrow_view.cpp:44
Definition: rect.h:26
Definition: color.h:6
Definition: view.h:23