Files
Upsilon/apps/graph/list/function_cell.h
Émilie Feral a29be020f5 [apps/graph] add a method in function expression view to mark a cell as dirty
Change-Id: Iee820055f36f18a31af5bd69097557e9718c6425
2016-10-04 12:26:30 +02:00

28 lines
724 B
C++

#ifndef GRAPH_FUNCTION_CELL_H
#define GRAPH_FUNCTION_CELL_H
#include <escher.h>
#include "../function.h"
class FunctionCell : public ChildlessView {
public:
FunctionCell();
void setFunction(Graph::Function * f);
void setEven(bool even);
void setHighlighted(bool highlight);
Graph::Function * function();
void reloadCell();
static constexpr KDColor k_evenLineBackgroundColor = KDColor(0xF9F9F9);
static constexpr KDColor k_oddLineBackgroundColor = KDColor(0xEEEEF2);
static constexpr KDColor k_selectedLineBackgroundColor = KDColor(0x8582DB);
static constexpr KDColor k_desactiveTextColor = KDColor(0x646464);
protected:
bool m_highlighted;
bool m_even;
Graph::Function * m_function;
};
#endif