Files
Upsilon/apps/graph/function_title_cell.h
2018-06-07 14:46:14 +02:00

28 lines
731 B
C++

#ifndef GRAPH_FUNCTION_TITLE_CELL_H
#define GRAPH_FUNCTION_TITLE_CELL_H
#include "../shared/function_title_cell.h"
namespace Graph {
class FunctionTitleCell : public Shared::FunctionTitleCell {
public:
FunctionTitleCell(Orientation orientation, KDText::FontSize size = KDText::FontSize::Large);
void setEven(bool even) override;
void setHighlighted(bool highlight) override;
void setColor(KDColor color) override;
void setText(const char * textContent);
const char * text() const override {
return m_bufferTextView.text();
}
private:
int numberOfSubviews() const override;
View * subviewAtIndex(int index) override;
void layoutSubviews() override;
EvenOddBufferTextCell m_bufferTextView;
};
}
#endif