summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/displayapp/screens/Timer.h')
-rw-r--r--src/displayapp/screens/Timer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/displayapp/screens/Timer.h b/src/displayapp/screens/Timer.h
index 76aac58..1eee6d0 100644
--- a/src/displayapp/screens/Timer.h
+++ b/src/displayapp/screens/Timer.h
@@ -8,24 +8,29 @@
#include "components/timer/TimerController.h"
namespace Pinetime::Applications::Screens {
+
class Timer : public Screen {
public:
enum class Modes { Normal, Done };
Timer(DisplayApp* app, Controllers::TimerController& timerController);
+
~Timer() override;
+
void Refresh() override;
void SetDone();
void OnButtonEvent(lv_obj_t* obj, lv_event_t event);
private:
- void CreateButtons();
bool running;
uint8_t secondsToSet = 0;
uint8_t minutesToSet = 0;
Controllers::TimerController& timerController;
+
+ void createButtons();
void stop();
+ lv_obj_t* backgroundLabel;
lv_task_t* taskRefresh;
lv_obj_t *time, *btnPlayPause, *txtPlayPause, *btnMinutesUp, *btnMinutesDown, *btnSecondsUp, *btnSecondsDown, *txtMUp,
*txtMDown, *txtSUp, *txtSDown;