Numworks Epsilon  1.4.1
Graphing Calculator Operating System
even_odd_buffer_text_cell.cpp
Go to the documentation of this file.
2 #include <assert.h>
3 
4 EvenOddBufferTextCell::EvenOddBufferTextCell(KDText::FontSize size, float horizontalAlignment, float verticalAlignment) :
5  EvenOddCell(),
6  m_bufferTextView(size, horizontalAlignment, verticalAlignment)
7 {
8 }
9 
11  return m_bufferTextView.text();
12 }
13 
15  EvenOddCell::setHighlighted(highlight);
17 }
18 
22 }
23 
24 void EvenOddBufferTextCell::setText(const char * textContent) {
25  m_bufferTextView.setText(textContent);
26 }
27 
29  m_bufferTextView.setTextColor(textColor);
30 }
31 
33  return 1;
34 }
35 
37  assert(index == 0);
38  return &m_bufferTextView;
39 }
40 
43 }
EvenOddBufferTextCell(KDText::FontSize size=KDText::FontSize::Small, float horizontalAlignment=1.0f, float verticalAlignment=0.5f)
View * subviewAtIndex(int index) override
#define assert(e)
Definition: assert.h:9
void setText(const char *text) override
virtual void setEven(bool even)
void setFrame(KDRect frame)
Definition: view.cpp:125
virtual KDColor backgroundColor() const
void setTextColor(KDColor textColor)
void setText(const char *textContent)
int numberOfSubviews() const override
void setEven(bool even) override
const char * text() const override
Definition: color.h:6
void setHighlighted(bool highlight) override
Definition: view.h:23
void setTextColor(KDColor textColor)
Definition: text_view.cpp:19
virtual void setHighlighted(bool highlight)
void setBackgroundColor(KDColor backgroundColor)
Definition: text_view.cpp:14
FontSize
Definition: text.h:10
KDRect bounds() const
Definition: view.cpp:157