Files
Upsilon/apps/graph/values/function_title_cell.h
Émilie Feral 678fc5b437 [apps/graph/values] Enable function title cell to draw a derivative
function title

Change-Id: I20f207bb73bf1459029601fb5900fbbd12ec3b77
2016-10-24 10:37:17 +02:00

22 lines
457 B
C++

#ifndef GRAPH_FUNCTION_TITLE_CELL_H
#define GRAPH_FUNCTION_TITLE_CELL_H
#include <escher.h>
#include "title_cell.h"
namespace Graph {
class FunctionTitleCell : public TitleCell {
public:
void setColor(KDColor color);
void drawRect(KDContext * ctx, KDRect rect) const override;
void setDerivative(bool derivative);
private:
constexpr static KDCoordinate k_colorIndicatorThickness = 2;
KDColor m_functionColor;
bool m_derivative;
};
}
#endif