Files
Upsilon/apps/regression/even_odd_double_buffer_text_cell.h
Émilie Feral 2527e5434a [apps/regression] Create a class even odd double buffer text cell
Change-Id: I1e22de8ebe6110244184c4006cf459cf1ac4f6ec
2017-01-09 15:08:55 +01:00

28 lines
925 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);
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