Numworks Epsilon  1.4.1
Graphing Calculator Operating System
update_controller.h
Go to the documentation of this file.
1 #ifndef ON_BOARDING_UPDATE_CONTROLLER_H
2 #define ON_BOARDING_UPDATE_CONTROLLER_H
3 
4 #include <escher.h>
5 #include "../i18n.h"
6 #include "../shared/message_view.h"
7 #include "../shared/ok_view.h"
8 
9 namespace OnBoarding {
10 
12 public:
14  View * view() override { return &m_messageViewWithSkip; }
15  bool handleEvent(Ion::Events::Event event) override;
16 private:
17  class MessageViewWithSkip : public MessageView {
18  public:
19  MessageViewWithSkip(I18n::Message * messages, KDColor * colors, uint8_t numberOfMessages);
20  protected:
21  int numberOfSubviews() const override;
22  View * subviewAtIndex(int index) override;
23  void layoutSubviews() override;
24  private:
25  constexpr static KDCoordinate k_bottomMargin = 13;
26  constexpr static KDCoordinate k_okMargin = 10;
27  constexpr static KDCoordinate k_skipMargin = 4;
28  MessageTextView m_skipView;
29  Shared::OkView m_okView;
30  };
31  MessageViewWithSkip m_messageViewWithSkip;
32 };
33 
34 }
35 
36 #endif
37 
bool handleEvent(Ion::Events::Event event) override
int16_t KDCoordinate
Definition: coordinate.h:6
unsigned char uint8_t
Definition: stdint.h:4
Definition: color.h:6
Definition: view.h:23