InfiniTime/src/displayapp/screens/settings/SettingDisplay.h

31 lines
706 B
C
Raw Normal View History

#pragma once
2021-09-20 12:13:46 +00:00
#include <array>
#include <cstdint>
#include <lvgl/lvgl.h>
2021-12-03 19:39:18 +00:00
#include "components/settings/Settings.h"
#include "displayapp/screens/Screen.h"
namespace Pinetime {
namespace Applications {
namespace Screens {
class SettingDisplay : public Screen {
2021-04-24 09:00:45 +00:00
public:
SettingDisplay(DisplayApp* app, Pinetime::Controllers::Settings& settingsController);
~SettingDisplay() override;
void UpdateSelected(lv_obj_t* object, lv_event_t event);
2021-04-24 09:00:45 +00:00
private:
2021-09-22 23:27:09 +00:00
static constexpr std::array<uint16_t, 4> options = {5000, 15000, 20000, 30000};
Controllers::Settings& settingsController;
2021-09-22 23:27:09 +00:00
lv_obj_t* cbOption[options.size()];
};
}
}
}