aboutsummaryrefslogtreecommitdiffstats
path: root/src/DisplayApp/Screens/Message.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-03-03 19:59:01 +0100
committerJF <jf@codingfield.com>2020-03-03 19:59:01 +0100
commit545636940f68108a361dda85e0e48a240909cf29 (patch)
treef471cf8f60976ab1fffce747db021e5706bf60c2 /src/DisplayApp/Screens/Message.h
parent79b4f006be8732663706f1177e17e52829eb661f (diff)
parentd2f725ec9bc6d848906b83ca539d873223d74648 (diff)
Merge branch 'littlevgl'
# Conflicts: # src/DisplayApp/Screens/Clock.cpp # src/DisplayApp/Screens/Clock.h
Diffstat (limited to 'src/DisplayApp/Screens/Message.h')
-rw-r--r--src/DisplayApp/Screens/Message.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/DisplayApp/Screens/Message.h b/src/DisplayApp/Screens/Message.h
index ac300faf..4e87bba4 100644
--- a/src/DisplayApp/Screens/Message.h
+++ b/src/DisplayApp/Screens/Message.h
@@ -8,18 +8,30 @@
#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:
- Message(Components::Gfx& gfx) : Screen(gfx) {}
- void Refresh(bool fullRefresh) override;
+ explicit Message(DisplayApp* app);
+ ~Message() override;
+ bool Refresh() override;
+ bool OnButtonPushed();
+ void OnObjectEvent(lv_obj_t* obj, lv_event_t event);
private:
- const FONT_INFO largeFont {lCD_70ptFontInfo.height, lCD_70ptFontInfo.startChar, lCD_70ptFontInfo.endChar, lCD_70ptFontInfo.spacePixels, lCD_70ptFontInfo.charInfo, lCD_70ptFontInfo.data};
- const FONT_INFO smallFont {lCD_14ptFontInfo.height, lCD_14ptFontInfo.startChar, lCD_14ptFontInfo.endChar, lCD_14ptFontInfo.spacePixels, lCD_14ptFontInfo.charInfo, lCD_14ptFontInfo.data};
+
+ 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;
};
}
}