ref: 0ce98c7ac7ba66acaf504be9bb042796e12f2733
src/displayapp/screens/FlashLight.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
#pragma once #include <cstdint> #include "Screen.h" #include <lvgl/lvgl.h> #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; bool Refresh() override; bool OnTouchEvent(Pinetime::Applications::TouchEvents event) override; void OnClickEvent(lv_obj_t* obj, lv_event_t event); private: Pinetime::System::SystemTask& systemTask; Controllers::BrightnessController& brightness; lv_obj_t* flashLight; lv_obj_t* backgroundAction; bool isOn = true; }; } } } |