OMOTE/Platformio/OmoteUI/UIs/BasicRefactored/widget/BrightnessSlider.hpp

25 lines
502 B
C++
Raw Normal View History

2023-10-22 14:35:49 -04:00
#pragma once
#include "DisplayAbstract.h"
#include "WidgetBase.hpp"
namespace UI::Widget {
class Slider;
class Label;
class BrightnessSlider : public Base {
public:
BrightnessSlider(std::shared_ptr<DisplayAbstract> aDisplay);
void SetHeight(lv_coord_t aHeight) override;
protected:
void OnShow() override;
bool OnKeyEvent(KeyPressAbstract::KeyEvent aKeyEvent) override;
private:
std::shared_ptr<DisplayAbstract> mDisplay;
Slider *mSlider;
Label *mLabel;
};
} // namespace UI::Widget