2020-01-18 12:17:52 -05:00
|
|
|
#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"
|
2020-02-10 15:05:33 -05:00
|
|
|
#include <lvgl/src/lv_core/lv_style.h>
|
2020-01-18 12:17:52 -05:00
|
|
|
|
|
|
|
namespace Pinetime {
|
|
|
|
namespace Applications {
|
|
|
|
namespace Screens {
|
|
|
|
class Message : public Screen{
|
|
|
|
public:
|
2020-02-23 10:14:03 -05:00
|
|
|
explicit Message(DisplayApp* app);
|
2020-02-16 12:32:36 -05:00
|
|
|
~Message() override;
|
2020-02-23 10:14:03 -05:00
|
|
|
bool Refresh() override;
|
|
|
|
bool OnButtonPushed();
|
2020-02-16 12:32:36 -05:00
|
|
|
void OnObjectEvent(lv_obj_t* obj, lv_event_t event);
|
2020-01-18 12:17:52 -05:00
|
|
|
|
|
|
|
private:
|
2020-02-10 15:05:33 -05:00
|
|
|
|
|
|
|
lv_style_t* labelStyle;
|
2020-02-16 12:32:36 -05:00
|
|
|
lv_obj_t * label;
|
|
|
|
lv_obj_t* backgroundLabel;
|
|
|
|
lv_obj_t * button;
|
|
|
|
lv_obj_t * labelClick;
|
|
|
|
|
|
|
|
uint32_t clickCount = 0 ;
|
|
|
|
uint32_t previousClickCount = 0;
|
2020-02-23 10:14:03 -05:00
|
|
|
bool running = true;
|
2020-01-18 12:17:52 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|