[escher] Add setter on EvenOddBufferTextCell

This commit is contained in:
Émilie Feral
2018-05-30 18:03:54 +02:00
parent 4d70fa2e0c
commit 40ab598c68

View File

@@ -8,6 +8,12 @@ class EvenOddBufferTextCell : public EvenOddCell {
public:
EvenOddBufferTextCell(KDText::FontSize size = KDText::FontSize::Small, float horizontalAlignment = 1.0f, float verticalAlignment = 0.5f);
const char * text();
void setFontSize(KDText::FontSize fontSize) {
m_bufferTextView.setFontSize(fontSize);
}
void setAlignment(float horizontalAlignment, float verticalAlignment) {
m_bufferTextView.setAlignment(horizontalAlignment, verticalAlignment);
}
void setEven(bool even) override;
void setHighlighted(bool highlight) override;
void setText(const char * textContent);