Files
Upsilon/escher/include/escher/even_odd_buffer_text_cell.h
Émilie Feral f43f47c306 [apps/sequence][apps/graph] Implement copy paste in values controller
Change-Id: Id4283e75c5e42debc4e6983aa1d7499acffbfc26
2017-04-26 09:39:07 +02:00

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