11 CurveView(graphRange, cursor, bannerView, cursorView),
12 m_selectedFunction(nullptr),
13 m_highlightedStart(
NAN),
14 m_highlightedEnd(
NAN),
15 m_shouldColorHighlighted(
false),
72 char * FunctionGraphView::label(Axis axis,
int index)
const {
73 return (axis ==
Axis::Horizontal ? (
char *)m_xLabels[index] : (
char *)m_yLabels[index]);
84 KDRect dirtyZone(
KDRect(pixelLowerBound, 0, pixelUpperBound-pixelLowerBound,
Poincare::Context * context() const
void reloadBetweenBounds(float start, float end)
Function * m_selectedFunction
void markRectAsDirty(KDRect rect)
void drawGrid(KDContext *ctx, KDRect rect) const
void drawAxes(KDContext *ctx, KDRect rect, Axis axis) const
constexpr KDColor KDColorWhite
void drawLabels(KDContext *ctx, KDRect rect, Axis axis, bool shiftOrigin) const
void setAreaHighlight(float start, float end)
void drawRect(KDContext *ctx, KDRect rect) const override
void fillRect(KDRect rect, KDColor color)
float floatToPixel(Axis axis, float f) const
void setContext(Poincare::Context *context)
void selectFunction(Function *function)
bool m_shouldColorHighlighted
virtual void setAreaHighlightColor(bool highlightColor)
KDCoordinate height() const