Files
Upsilon/apps/graph/even_odd_cell.h
Émilie Feral c3524fa287 [apps/graph/list] make the class function cell inherits from even odd cell class
Change-Id: I8c786d76c7be726b2672713a5150dce5abb12061
2016-10-11 10:31:50 +02:00

25 lines
613 B
C++

#ifndef GRAPH_EVEN_ODD_CELL_H
#define GRAPH_EVEN_ODD_CELL_H
#include <escher.h>
class EvenOddCell : public ChildlessView {
public:
EvenOddCell();
void setEven(bool even);
void setHighlighted(bool highlight);
void reloadCell();
KDColor backgroundColor() const;
void drawRect(KDContext * ctx, KDRect rect) const override;
static constexpr KDColor k_evenLineBackgroundColor = KDColor(0xF7F9FA);
static constexpr KDColor k_oddLineBackgroundColor = KDColorWhite;
static constexpr KDColor k_selectedLineBackgroundColor = KDColor(0xC0D3EA);
private:
bool m_highlighted;
bool m_even;
};
#endif