Files
Upsilon/apps/shared/function_title_cell.h
2018-09-07 17:55:42 +02:00

29 lines
690 B
C++

#ifndef SHARED_FUNCTION_TITLE_CELL_H
#define SHARED_FUNCTION_TITLE_CELL_H
#include <escher.h>
namespace Shared {
class FunctionTitleCell : public EvenOddCell {
public:
enum class Orientation {
HorizontalIndicator,
VerticalIndicator
};
FunctionTitleCell(Orientation orientation = Orientation::VerticalIndicator);
void setOrientation(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