ref: 0195ece317d15bcba7dfbd74b58bb8dbcd3bca0a
src/DisplayApp/Screens/Tile.h
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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
#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 "Modal.h" #include <lvgl/src/lv_core/lv_style.h> namespace Pinetime { namespace Applications { namespace Screens { class Tile : public Screen { public: explicit Tile(DisplayApp* app); ~Tile() override; bool Refresh() override; bool OnButtonPushed() override; void OnObjectEvent(lv_obj_t* obj, lv_event_t event, uint32_t buttonId); private: lv_style_t* labelRelStyle; lv_style_t* labelPrStyle; lv_obj_t * label1; lv_obj_t * label2; lv_obj_t * label3; lv_obj_t* backgroundLabel; lv_obj_t * button; lv_obj_t * labelClick; lv_obj_t *tileview; lv_obj_t * tile1; lv_obj_t * tile2; lv_obj_t * list; lv_obj_t * list_btn; lv_obj_t * tile3; lv_obj_t * btn1; lv_obj_t * btn2; lv_obj_t * btn3; lv_obj_t * btnm1; lv_obj_t * btnm2; uint32_t clickCount = 0 ; uint32_t previousClickCount = 0; void StartClockApp(); void StartSysInfoApp(); void StartMeterApp(); void StartGaugeApp(); bool running = true; std::unique_ptr<Modal> modal; void StartBrightnessApp(); }; } } } |