diff options
| author | panky-codes <pankaj.sarathy1992@gmail.com> | 2021-03-11 22:41:24 (GMT) |
|---|---|---|
| committer | panky-codes <pankaj.sarathy1992@gmail.com> | 2021-03-11 22:41:24 (GMT) |
| commit | 70373e734529fdd2e31f0080444360ba859ff567 (patch) | |
| tree | 4049dcee7d8c1a039f6da9d0db8bd0458b38bac5 /src/displayapp/screens/StopWatch.h | |
| parent | ce91e1a7a6e7ccf674aabfb20770d13cb4eb3190 (diff) | |
Added play/pause button.
Diffstat (limited to 'src/displayapp/screens/StopWatch.h')
| -rw-r--r-- | src/displayapp/screens/StopWatch.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/displayapp/screens/StopWatch.h b/src/displayapp/screens/StopWatch.h index 4763fd1..9e5779a 100644 --- a/src/displayapp/screens/StopWatch.h +++ b/src/displayapp/screens/StopWatch.h @@ -20,6 +20,8 @@ namespace Pinetime::Applications::Screens { bool Refresh() override; bool OnButtonPushed() override; bool OnTouchEvent(uint16_t x, uint16_t y) override; + void playPauseBtnEventHandler(lv_event_t event); + private: const Pinetime::Controllers::DateTime& dateTime; @@ -27,7 +29,7 @@ namespace Pinetime::Applications::Screens { States currentState; Events currentEvent; TickType_t startTime; - TickType_t timeElapsed; - lv_obj_t *time, *msecTime; + TickType_t oldTimeElapsed; + lv_obj_t *time, *msecTime, *btnPlayPause, *btnStop, *txtPlayPause, *txtStop; }; }
\ No newline at end of file |
