Blame view

Modif/epsilon-master/apps/shared/function_title_cell.h 609 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
26
27
  #ifndef SHARED_FUNCTION_TITLE_CELL_H
  #define SHARED_FUNCTION_TITLE_CELL_H
  
  #include <escher.h>
  
  namespace Shared {
  
  class FunctionTitleCell : public EvenOddCell {
  public:
    enum class Orientation {
      HorizontalIndicator,
      VerticalIndicator
    };
    FunctionTitleCell(Orientation orientation);
    virtual void setColor(KDColor color);
    void drawRect(KDContext * ctx, KDRect rect) const override;
  protected:
    constexpr static KDCoordinate k_separatorThickness = 1;
    constexpr static KDCoordinate k_colorIndicatorThickness = 2;
    Orientation m_orientation;
  private:
    KDColor m_functionColor;
  };
  
  }
  
  #endif