Blame view

Giac_maj/epsilon-giac/apps/shift_alpha_lock_view.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_SHIFT_ALPHA_LOCK_VIEW_H
  #define APPS_SHIFT_ALPHA_LOCK_VIEW_H
  
  #include <escher.h>
  #include "lock_view.h"
  #include "i18n.h"
  
  class ShiftAlphaLockView : public View {
  public:
    ShiftAlphaLockView();
    void drawRect(KDContext * ctx, KDRect rect) const override;
    bool setStatus(Ion::Events::ShiftAlphaStatus status);
    KDSize minimalSizeForOptimalDisplay() const override;
  private:
    constexpr static KDCoordinate k_lockRightMargin = 5;
    int numberOfSubviews() const override;
    void layoutSubviews() override;
    View * subviewAtIndex(int index) override;
    LockView m_lockView;
    MessageTextView m_shiftAlphaView;
    Ion::Events::ShiftAlphaStatus m_status;
  };
  
  #endif