OMOTE/Platformio/OmoteUI/UIs/BasicRefactored/widget/BrightnessSlider.hpp
MatthewColvin c7f9482e0a Create Base Implementation of OnShow and OnHide that notify all owned elements of their shown status
Update OnShow and OnHide to be aware of current set visibility.
2023-10-12 18:40:07 -05:00

25 lines
No EOL
502 B
C++

#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