mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 09:40:07 +01:00
24 lines
725 B
C++
24 lines
725 B
C++
#ifndef ESCHER_EVEN_ODD_BUFFER_TEXT_CELL_H
|
|
#define ESCHER_EVEN_ODD_BUFFER_TEXT_CELL_H
|
|
|
|
#include <escher/even_odd_cell.h>
|
|
#include <escher/buffer_text_view.h>
|
|
|
|
class EvenOddBufferTextCell : public EvenOddCell {
|
|
public:
|
|
EvenOddBufferTextCell(KDText::FontSize size = KDText::FontSize::Small, float horizontalAlignment = 1.0f, float verticalAlignment = 0.5f);
|
|
const char * text();
|
|
void setEven(bool even) override;
|
|
void setHighlighted(bool highlight) override;
|
|
void setText(const char * textContent);
|
|
void setTextColor(KDColor textColor);
|
|
int numberOfSubviews() const override;
|
|
View * subviewAtIndex(int index) override;
|
|
void layoutSubviews() override;
|
|
|
|
protected:
|
|
BufferTextView m_bufferTextView;
|
|
};
|
|
|
|
#endif
|