From e3fb2f0b8974f3e9a124d27f4b568e754ccfb782 Mon Sep 17 00:00:00 2001 From: Avamander Date: Fri, 2 Oct 2020 21:46:41 +0300 Subject: Renamed DisplayApp/ to displayapp/ --- src/displayapp/Screens/Tile.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/displayapp/Screens/Tile.h (limited to 'src/displayapp/Screens/Tile.h') diff --git a/src/displayapp/Screens/Tile.h b/src/displayapp/Screens/Tile.h new file mode 100644 index 00000000..3136d892 --- /dev/null +++ b/src/displayapp/Screens/Tile.h @@ -0,0 +1,39 @@ +#pragma once + +#include +#include "Screen.h" +#include +#include "Modal.h" +#include +#include + +namespace Pinetime { + namespace Applications { + namespace Screens { + class Tile : public Screen { + public: + struct Applications { + const char* icon; + Pinetime::Applications::Apps application; + }; + + explicit Tile(DisplayApp* app, std::array& applications); + ~Tile() override; + + bool Refresh() override; + bool OnButtonPushed() override; + + void OnObjectEvent(lv_obj_t* obj, lv_event_t event, uint32_t buttonId); + + private: + lv_obj_t * btnm1; + bool running = true; + + std::unique_ptr modal; + + const char* btnm_map1[8]; + Pinetime::Applications::Apps apps[6]; + }; + } + } +} -- cgit v1.2.3-70-g09d2