Numworks Epsilon  1.4.1
Graphing Calculator Operating System
message_table_cell_with_chevron_and_message.cpp
Go to the documentation of this file.
2 #include <escher/palette.h>
3 
5  MessageTableCellWithChevron((I18n::Message)0, labelSize),
6  m_subtitleView(contentSize, (I18n::Message)0, 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.setMessage(text);
22  reloadCell();
24 }
Definition: i18n.h:6
constexpr KDColor KDColorWhite
Definition: color.h:42
MessageTableCellWithChevronAndMessage(KDText::FontSize labelSize=KDText::FontSize::Small, KDText::FontSize contentSize=KDText::FontSize::Small)
static constexpr KDColor Select
Definition: palette.h:17
void setMessage(I18n::Message message)
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
virtual void reloadCell()
void setBackgroundColor(KDColor backgroundColor)
Definition: text_view.cpp:14
FontSize
Definition: text.h:10
Definition: palette.h:6