summaryrefslogtreecommitdiff
path: root/src/DisplayApp/Screens/Brightness.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-03-15 20:01:24 (GMT)
committerJF <jf@codingfield.com>2020-03-15 20:01:24 (GMT)
commit8ed6ffaaf8d0ad681c4f84b89e4a72792edb5a8f (patch)
tree594ce4ca20956b61bd796d8aabb64a1ae78c425e /src/DisplayApp/Screens/Brightness.h
parent2c55ab20b4f52d21a04e1d0ee049f7c4ca0196de (diff)
Add the possibility to the screen to handle a touch gesture.
A default action is taken if the current screen doesn't handle it.
Diffstat (limited to 'src/DisplayApp/Screens/Brightness.h')
-rw-r--r--src/DisplayApp/Screens/Brightness.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/DisplayApp/Screens/Brightness.h b/src/DisplayApp/Screens/Brightness.h
index 31861f8..37cbcd7 100644
--- a/src/DisplayApp/Screens/Brightness.h
+++ b/src/DisplayApp/Screens/Brightness.h
@@ -13,6 +13,7 @@ namespace Pinetime {
~Brightness() override;
bool Refresh() override;
bool OnButtonPushed() override;
+ bool OnTouchEvent(TouchEvents event) override;
void OnValueChanged();
private:
@@ -25,6 +26,7 @@ namespace Pinetime {
const char* LevelToString(Controllers::BrightnessController::Levels level);
uint8_t LevelToInt(Controllers::BrightnessController::Levels level);
void SetValue(uint8_t value);
+ void SetValue();
};
}
}