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
KDCoordinate
int16_t KDCoordinate
Definition:
coordinate.h:6
HardwareTest::ArrowView::drawRect
void drawRect(KDContext *ctx, KDRect rect) const override
Definition:
arrow_view.cpp:53
HardwareTest::ArrowView::setDirection
void setDirection(bool up)
Definition:
arrow_view.cpp:37
HardwareTest::ArrowView::setColor
void setColor(KDColor color)
Definition:
arrow_view.cpp:44
escher.h
HardwareTest
Definition:
app.cpp:8
HardwareTest::ArrowView
Definition:
arrow_view.h:8
KDContext
Definition:
context.h:8
HardwareTest::ArrowView::ArrowView
ArrowView()
Definition:
arrow_view.cpp:31
KDRect
Definition:
rect.h:26
KDColor
Definition:
color.h:6
View
Definition:
view.h:23
epsilon
apps
hardware_test
arrow_view.h
Generated by
1.8.14