Files
Upsilon/apps/shared/function_title_cell.h
Émilie Feral 0f4d7f0914 [apps/shared][apps/graph][apps/sequence] Reorganise list controllers,
function title cells and function expression cells

Change-Id: Idbdae4975c8ed83a023c781dc14929b8c2053bb0
2017-02-16 14:46:04 +01:00

27 lines
604 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, KDText::FontSize size = KDText::FontSize::Large);
virtual void setColor(KDColor color);
void drawRect(KDContext * ctx, KDRect rect) const override;
protected:
constexpr static KDCoordinate k_colorIndicatorThickness = 2;
Orientation m_orientation;
private:
KDColor m_functionColor;
};
}
#endif