Numworks Epsilon  1.4.1
Graphing Calculator Operating System
function_title_cell.cpp
Go to the documentation of this file.
1 #include "function_title_cell.h"
2 #include <assert.h>
3 
4 namespace Shared {
5 
7  EvenOddCell(),
8  m_orientation(orientation)
9 {
10 }
11 
13  m_functionColor = color;
14  reloadCell();
15 }
16 
17 void FunctionTitleCell::drawRect(KDContext * ctx, KDRect rect) const {
19  ctx->fillRect(KDRect(0, 0, k_colorIndicatorThickness, bounds().height()), m_functionColor);
20  } else {
21  ctx->fillRect(KDRect(0, 0, bounds().width(), k_colorIndicatorThickness), m_functionColor);
22  }
23  KDColor separatorColor = m_even ? Palette::WallScreen : KDColorWhite;
24  // Color the horizontal separator
26 }
27 
28 }
virtual void setColor(KDColor color)
static constexpr KDCoordinate k_colorIndicatorThickness
FunctionTitleCell(Orientation orientation)
void drawRect(KDContext *ctx, KDRect rect) const override
constexpr KDColor KDColorWhite
Definition: color.h:42
static constexpr KDCoordinate k_separatorThickness
static constexpr KDColor WallScreen
Definition: palette.h:19
Definition: rect.h:26
void fillRect(KDRect rect, KDColor color)
Definition: context_rect.cpp:8
Definition: color.h:6
virtual void reloadCell()
KDRect bounds() const
Definition: view.cpp:157