Blame view

build6/epsilon-master/apps/shared/buffer_function_title_cell.h 864 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
28
29
30
  #ifndef SHARED_BUFFER_FUNCTION_TITLE_CELL_H
  #define SHARED_BUFFER_FUNCTION_TITLE_CELL_H
  
  #include "function_title_cell.h"
  
  namespace Shared {
  
  class BufferFunctionTitleCell : public FunctionTitleCell {
  public:
    BufferFunctionTitleCell(Orientation orientation, KDText::FontSize size = KDText::FontSize::Large);
    void setEven(bool even) override;
    void setHighlighted(bool highlight) override;
    void setColor(KDColor color) override;
    void setText(const char * textContent);
    const char * text() const override {
      return m_bufferTextView.text();
    }
    int numberOfSubviews() const override;
    View * subviewAtIndex(int index) override;
    void layoutSubviews() override;
  protected:
    KDRect bufferTextViewFrame() const;
    EvenOddBufferTextCell * bufferTextView() { return &m_bufferTextView; }
  private:
    EvenOddBufferTextCell m_bufferTextView;
  };
  
  }
  
  #endif