mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
30 lines
982 B
C++
30 lines
982 B
C++
#ifndef REGRESSION_EVEN_ODD_DOUBLE_BUFFER_TEXT_CELL_H
|
|
#define REGRESSION_EVEN_ODD_DOUBLE_BUFFER_TEXT_CELL_H
|
|
|
|
#include <escher.h>
|
|
|
|
class EvenOddDoubleBufferTextCell : public EvenOddCell, public Responder{
|
|
public:
|
|
EvenOddDoubleBufferTextCell(Responder * parentResponder = nullptr);
|
|
const char * firstText();
|
|
const char * secondText();
|
|
void reloadCell() override;
|
|
void setHighlighted(bool highlight) override;
|
|
void setEven(bool even) override;
|
|
bool firstTextSelected();
|
|
void selectFirstText(bool selectFirstText);
|
|
void setFirstText(const char * textContent);
|
|
void setSecondText(const char * textContent);
|
|
void setTextColor(KDColor textColor);
|
|
int numberOfSubviews() const override;
|
|
View * subviewAtIndex(int index) override;
|
|
void layoutSubviews() override;
|
|
bool handleEvent(Ion::Events::Event event) override;
|
|
protected:
|
|
bool m_firstTextSelected;
|
|
EvenOddBufferTextCell m_firstBufferTextView;
|
|
EvenOddBufferTextCell m_secondBufferTextView;
|
|
};
|
|
|
|
#endif
|