Files
Upsilon/apps/shared/function_title_cell.h
Émilie Feral 5c8b5492e8 [apps/sequence/list] Improve cell rendering
Change-Id: I64e713a3beae2574593f96fa05717f346e5ffd07
2017-02-20 10:52:03 +01:00

28 lines
613 B
C++

#ifndef SEQUENCE_FUNCTION_TITLE_CELL_H
#define SEQUENCE_FUNCTION_TITLE_CELL_H
#include <escher.h>
namespace Shared {
class FunctionTitleCell : public EvenOddCell {
public:
enum class Orientation {
HorizontalIndicator,
VerticalIndicator
};
FunctionTitleCell(Orientation orientation);
virtual void setColor(KDColor color);
void drawRect(KDContext * ctx, KDRect rect) const override;
protected:
constexpr static KDCoordinate k_separatorThickness = 1;
constexpr static KDCoordinate k_colorIndicatorThickness = 2;
Orientation m_orientation;
private:
KDColor m_functionColor;
};
}
#endif