diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2022-08-01 20:57:27 +0300 |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2022-08-10 08:37:52 +0300 |
| commit | 3eebe0244872818d7b96d4dae3e55e3548941bda (patch) | |
| tree | 2838d90157a6fc89436c67a47332a43531a8c708 /src/displayapp/widgets/Counter.h | |
| parent | 8e72cf380fa0bec62e3d9805ec777e586d188cf2 (diff) | |
Add support for months and variable digit count to Counter
Diffstat (limited to 'src/displayapp/widgets/Counter.h')
| -rw-r--r-- | src/displayapp/widgets/Counter.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/displayapp/widgets/Counter.h b/src/displayapp/widgets/Counter.h index 13b336ca..d38dd9d7 100644 --- a/src/displayapp/widgets/Counter.h +++ b/src/displayapp/widgets/Counter.h @@ -15,6 +15,8 @@ namespace Pinetime { void HideControls(); void ShowControls(); void EnableTwelveHourMode(); + void EnableMonthMode(); + void SetMax(int newMax); void SetValueChangedEventCallback(void* userData, void (*handler)(void* userData)); int GetValue() const { @@ -36,10 +38,11 @@ namespace Pinetime { lv_obj_t* upperLine; lv_obj_t* lowerLine; lv_point_t linePoints[2]; - int value = 0; int min; int max; + int value; bool twelveHourMode = false; + bool monthMode = false; lv_font_t& font; void* userData = nullptr; |
