Numworks Epsilon  1.4.1
Graphing Calculator Operating System
message_table_cell_with_chevron_and_expression.cpp
Go to the documentation of this file.
2 #include <escher/palette.h>
3 
5  MessageTableCellWithChevron(message, size),
6  m_subtitleView(1.0f, 0.5f, Palette::GreyDark)
7 {
8 }
9 
11  return (View *)&m_subtitleView;
12 }
13 
16  KDColor backgroundColor = isHighlighted()? Palette::Select : KDColorWhite;
17  m_subtitleView.setBackgroundColor(backgroundColor);
18 }
19 
21  m_subtitleView.setExpression(expressionLayout);
22  reloadCell();
24 }
void setBackgroundColor(KDColor backgroundColor)
MessageTableCellWithChevronAndExpression(I18n::Message message=(I18n::Message) 0, KDText::FontSize size=KDText::FontSize::Small)
void setExpression(Poincare::ExpressionLayout *expressionLayout)
constexpr KDColor KDColorWhite
Definition: color.h:42
static constexpr KDColor Select
Definition: palette.h:17
bool isHighlighted() const
virtual void setHighlighted(bool highlight) override
void layoutSubviews() override
Definition: table_cell.cpp:37
Definition: color.h:6
Definition: view.h:23
void setExpression(Poincare::ExpressionLayout *expressionLayout)
virtual void reloadCell()
FontSize
Definition: text.h:10
Definition: palette.h:6