Numworks Epsilon  1.4.1
Graphing Calculator Operating System
even_odd_expression_cell.cpp
Go to the documentation of this file.
2 #include <assert.h>
3 using namespace Poincare;
4 
5 EvenOddExpressionCell::EvenOddExpressionCell(float horizontalAlignment, float verticalAlignment,
6  KDColor textColor, KDColor backgroundColor) :
7  EvenOddCell(),
8  m_expressionView(horizontalAlignment, verticalAlignment, textColor, backgroundColor)
9 {
10 }
11 
13  EvenOddCell::setHighlighted(highlight);
15 }
16 
20 }
21 
23  m_expressionView.setExpression(expressionLayout);
24 }
25 
28 }
29 
31  m_expressionView.setTextColor(textColor);
32 }
33 
36 }
37 
39  return 1;
40 }
41 
43  assert(index == 0);
44  return &m_expressionView;
45 }
46 
49 }
void setBackgroundColor(KDColor backgroundColor)
int numberOfSubviews() const override
#define assert(e)
Definition: assert.h:9
virtual void setEven(bool even)
void setFrame(KDRect frame)
Definition: view.cpp:125
void setExpression(Poincare::ExpressionLayout *expressionLayout)
KDSize minimalSizeForOptimalDisplay() const override
void setHighlighted(bool highlight) override
virtual KDColor backgroundColor() const
void setTextColor(KDColor textColor)
Definition: size.h:6
void setEven(bool even) override
KDSize minimalSizeForOptimalDisplay() const override
EvenOddExpressionCell(float horizontalAlignment=0.0f, float verticalAlignment=0.5f, KDColor textColor=KDColorBlack, KDColor backgroundColor=KDColorWhite)
void setTextColor(KDColor textColor)
View * subviewAtIndex(int index) override
Definition: color.h:6
Definition: view.h:23
virtual void setHighlighted(bool highlight)
void setExpression(Poincare::ExpressionLayout *expressionLayout)
void setBackgroundColor(KDColor backgroundColor)
KDRect bounds() const
Definition: view.cpp:157