Files
Upsilon/apps/graph/list/function_cell.h
Émilie Feral 47a02344c2 [apps/graph/list] Modify the controller of functions to use a table view instead of a list view
Change-Id: I3767de865ef07761eb80310cfe80d6eb60821bb0
2016-09-30 17:12:32 +02:00

27 lines
703 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();
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