Numworks Epsilon  1.4.1
Graphing Calculator Operating System
even_odd_message_text_cell.cpp
Go to the documentation of this file.
2 #include <assert.h>
3 
5  EvenOddCell(),
6  m_messageTextView(size, (I18n::Message)0, 0.5f, 0.5f)
7 {
8 }
9 
11  EvenOddCell::setHighlighted(highlight);
13 }
14 
18 }
19 
20 void EvenOddMessageTextCell::setMessage(I18n::Message title, KDColor textColor) {
23 }
24 
25 void EvenOddMessageTextCell::setAlignment(float horizontalAlignment, float verticalAlignment) {
26  m_messageTextView.setAlignment(horizontalAlignment, verticalAlignment);
27 }
28 
30  return 1;
31 }
32 
34  assert(index == 0);
35  return &m_messageTextView;
36 }
37 
40 }
Definition: i18n.h:6
void setAlignment(float horizontalAlignment, float verticalAlignment)
void setHighlighted(bool highlight) override
#define assert(e)
Definition: assert.h:9
virtual void setEven(bool even)
void setFrame(KDRect frame)
Definition: view.cpp:125
virtual KDColor backgroundColor() const
void setEven(bool even) override
EvenOddMessageTextCell(KDText::FontSize size=KDText::FontSize::Large)
View * subviewAtIndex(int index) override
void setMessage(I18n::Message message)
int numberOfSubviews() const override
void setMessage(I18n::Message textContent, KDColor textColor=KDColorBlack)
Definition: color.h:6
Definition: view.h:23
void setAlignment(float horizontalAlignment, float verticalAlignment)
Definition: text_view.cpp:24
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