Numworks Epsilon  1.4.1
Graphing Calculator Operating System
expression_table_cell_with_pointer.cpp
Go to the documentation of this file.
2 #include <escher/palette.h>
3 #include <assert.h>
4 
6  ExpressionTableCell(layout),
7  m_accessoryView(KDText::FontSize::Small, accessoryMessage, 0.0f, 0.5f, Palette::GreyDark, KDColorWhite)
8 {
9  if (layout == Layout::Horizontal) {
10  m_accessoryView.setAlignment(1.0f, 0.5f);
11  }
12 }
13 
15  return (View *)&m_accessoryView;
16 }
17 
20  KDColor backgroundColor = highlight? Palette::Select : KDColorWhite;
21  m_accessoryView.setBackgroundColor(backgroundColor);
22 }
23 
25  m_accessoryView.setMessage(text);
26 }
Definition: text.h:8
constexpr KDColor KDColorWhite
Definition: color.h:42
void setAccessoryMessage(I18n::Message messageBody)
static constexpr KDColor Select
Definition: palette.h:17
ExpressionTableCellWithPointer(I18n::Message accessoryMessage=(I18n::Message) 0, Layout layout=Layout::Horizontal)
void setMessage(I18n::Message message)
Definition: color.h:6
void setHighlighted(bool highlight) override
Definition: view.h:23
void setAlignment(float horizontalAlignment, float verticalAlignment)
Definition: text_view.cpp:24
void setBackgroundColor(KDColor backgroundColor)
Definition: text_view.cpp:14
Definition: palette.h:6