mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
26 lines
531 B
C++
26 lines
531 B
C++
#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
|
|
|