summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/FlashLight.h
diff options
context:
space:
mode:
authorJoaquim <joaquim.org@gmail.com>2021-04-26 21:29:48 +0100
committerJoaquim <joaquim.org@gmail.com>2021-04-26 21:29:48 +0100
commitcd0d85dff95bbc5f285d92eb78a642aab1ae4b8b (patch)
treefc568aa2516c8c64cc55eb0d08e9a929c11b454a /src/displayapp/screens/FlashLight.h
parent5fc07a8df7d18d1fa9c4971f2c7b69ea68db559b (diff)
parenteedff2c06c292bda8dcb92fc04c67097fe72e22f (diff)
Merge branch 'develop' of
https://github.com/JF002/InfiniTime into StepsApp
Diffstat (limited to 'src/displayapp/screens/FlashLight.h')
-rw-r--r--src/displayapp/screens/FlashLight.h30
1 files changed, 14 insertions, 16 deletions
diff --git a/src/displayapp/screens/FlashLight.h b/src/displayapp/screens/FlashLight.h
index c62472ab..a862ffdb 100644
--- a/src/displayapp/screens/FlashLight.h
+++ b/src/displayapp/screens/FlashLight.h
@@ -6,30 +6,28 @@
#include "systemtask/SystemTask.h"
#include "components/brightness/BrightnessController.h"
-
namespace Pinetime {
-
+
namespace Applications {
namespace Screens {
- class FlashLight : public Screen{
- public:
- FlashLight(DisplayApp* app, System::SystemTask &systemTask, Controllers::BrightnessController& brightness);
- ~FlashLight() override;
+ class FlashLight : public Screen {
+ public:
+ FlashLight(DisplayApp* app, System::SystemTask& systemTask, Controllers::BrightnessController& brightness);
+ ~FlashLight() override;
- bool Refresh() override;
-
- bool OnTouchEvent(Pinetime::Applications::TouchEvents event) override;
- void OnClickEvent(lv_obj_t *obj, lv_event_t event);
+ bool Refresh() override;
- private:
- Pinetime::System::SystemTask& systemTask;
- Controllers::BrightnessController& brightness;
+ bool OnTouchEvent(Pinetime::Applications::TouchEvents event) override;
+ void OnClickEvent(lv_obj_t* obj, lv_event_t event);
- lv_obj_t* flashLight;
- lv_obj_t* backgroundAction;
- bool isOn = true;
+ private:
+ Pinetime::System::SystemTask& systemTask;
+ Controllers::BrightnessController& brightness;
+ lv_obj_t* flashLight;
+ lv_obj_t* backgroundAction;
+ bool isOn = true;
};
}
}