OMOTE/Platformio/OmoteUI/UIs/BasicRefactored/screen/HomeScreen.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

24 lines
No EOL
581 B
C++

#pragma once
#include "HardwareAbstract.hpp"
#include "PageBase.hpp"
#include "ScreenBase.hpp"
#include "TabView.hpp"
#include <string>
namespace UI::Screen {
class HomeScreen : public Base {
public:
HomeScreen(std::shared_ptr<HardwareAbstract> aHardware = nullptr);
void SetBgColor(lv_color_t value,
lv_style_selector_t selector = LV_PART_MAIN) override;
protected:
bool OnKeyEvent(KeyPressAbstract::KeyEvent aKeyEvent) override;
private:
Page::TabView *mTabView;
std::shared_ptr<HardwareAbstract> mHardware = nullptr;
};
} // namespace UI::Screen