Numworks Epsilon  1.4.1
Graphing Calculator Operating System
expression_table_cell.cpp
Go to the documentation of this file.
2 #include <escher/palette.h>
3 #include <assert.h>
4 
6  TableCell(layout),
7  m_labelExpressionView(0.0f, 0.5f, KDColorBlack, KDColorWhite)
8 {
9 }
10 
12  return (View *)&m_labelExpressionView;
13 }
14 
16  TableCell::setHighlighted(highlight);
17  KDColor backgroundColor = highlight? Palette::Select : KDColorWhite;
18  m_labelExpressionView.setBackgroundColor(backgroundColor);
19 }
20 
22  m_labelExpressionView.setExpression(expressionLayout);
24 }
void setBackgroundColor(KDColor backgroundColor)
void setExpression(Poincare::ExpressionLayout *expressionLayout)
constexpr KDColor KDColorWhite
Definition: color.h:42
static constexpr KDColor Select
Definition: palette.h:17
void setExpression(Poincare::ExpressionLayout *expressionLayout)
constexpr KDColor KDColorBlack
Definition: color.h:41
void layoutSubviews() override
Definition: table_cell.cpp:37
Definition: color.h:6
void setHighlighted(bool highlight) override
Definition: view.h:23
ExpressionTableCell(Layout layout=Layout::Horizontal)
virtual void setHighlighted(bool highlight)
View * labelView() const override