summaryrefslogtreecommitdiff
path: root/src/DisplayApp/Screens/Message.h
blob: 4e87bba423c7a89b093bc34a6efc33f55770c4dc (plain)
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
31
32
33
34
35
36
37
38
#pragma once

#include <cstdint>
#include <chrono>
#include <Components/Gfx/Gfx.h>
#include "Screen.h"
#include <bits/unique_ptr.h>
#include "../Fonts/lcdfont14.h"
#include "../Fonts/lcdfont70.h"
#include "../../Version.h"
#include <lvgl/src/lv_core/lv_style.h>

namespace Pinetime {
  namespace Applications {
    namespace Screens {
      class Message : public Screen{
        public:
          explicit Message(DisplayApp* app);
          ~Message() override;
          bool Refresh() override;
          bool OnButtonPushed();
          void OnObjectEvent(lv_obj_t* obj, lv_event_t event);

        private:

          lv_style_t* labelStyle;
          lv_obj_t * label;
          lv_obj_t* backgroundLabel;
          lv_obj_t * button;
          lv_obj_t * labelClick;

          uint32_t clickCount = 0 ;
          uint32_t previousClickCount = 0;
          bool running = true;
      };
    }
  }
}