Blame view

Modif/epsilon-master/apps/shared/store_cell.h 680 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
  #ifndef APPS_SHARED_STORE_CELL_H
  #define APPS_SHARED_STORE_CELL_H
  
  #include "hideable_even_odd_editable_text_cell.h"
  
  namespace Shared {
  
  class StoreCell : public HideableEvenOddEditableTextCell {
  public:
    StoreCell(Responder * parentResponder = nullptr, TextFieldDelegate * delegate = nullptr, char * draftTextBuffer = nullptr) :
      HideableEvenOddEditableTextCell(parentResponder, delegate, draftTextBuffer),
      m_separatorLeft(false)
    {}
    void setSeparatorLeft(bool separator);
    void drawRect(KDContext * ctx, KDRect rect) const override;
    void layoutSubviews() override;
  private:
    static constexpr KDCoordinate k_rightMargin = 2;
    bool m_separatorLeft;
  };
  
  }
  
  #endif