Blame view

build1/epsilon-master/apps/regression/column_title_cell.h 672 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  #ifndef REGRESSION_COLUMN_TITLE_CELL_H
  #define REGRESSION_COLUMN_TITLE_CELL_H
  
  #include "even_odd_double_buffer_text_cell_with_separator.h"
  
  namespace Regression {
  
  class ColumnTitleCell : public EvenOddDoubleBufferTextCellWithSeparator {
  public:
    ColumnTitleCell(Responder * parentResponder = nullptr) :
      EvenOddDoubleBufferTextCellWithSeparator(parentResponder, 0.5f, 0.5f),
      m_functionColor(Palette::Red)
    {
    }
    virtual void setColor(KDColor color);
    void drawRect(KDContext * ctx, KDRect rect) const override;
    void layoutSubviews() override;
  private:
    constexpr static KDCoordinate k_colorIndicatorThickness = 2;
    KDColor m_functionColor;
  };
  
  }
  
  #endif