mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
26 lines
690 B
C++
26 lines
690 B
C++
#ifndef REGRESSION_COLUMN_TITLE_CELL_H
|
|
#define REGRESSION_COLUMN_TITLE_CELL_H
|
|
|
|
#include "even_odd_double_buffer_text_cell_with_separator.h"
|
|
|
|
namespace Regression {
|
|
|
|
class ColumnTitleCell : public EvenOddDoubleBufferTextCellWithSeparator {
|
|
public:
|
|
ColumnTitleCell(Responder * parentResponder = nullptr) :
|
|
EvenOddDoubleBufferTextCellWithSeparator(parentResponder, 0.5f, 0.5f),
|
|
m_functionColor(Palette::Red)
|
|
{
|
|
}
|
|
virtual void setColor(KDColor color);
|
|
void drawRect(KDContext * ctx, KDRect rect) const override;
|
|
void layoutSubviews(bool force = false) override;
|
|
private:
|
|
constexpr static KDCoordinate k_colorIndicatorThickness = 2;
|
|
KDColor m_functionColor;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|