mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
29 lines
690 B
C++
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
|