Files
bobbycar-boardcomputer-firm…/main/displays/menus/batterymenu.h
2023-08-13 20:37:50 +02:00

27 lines
675 B
C++

#pragma once
// local includes
#include "displays/bobbymenudisplay.h"
#include "widgets/doubleprogressbar.h"
#include "widgets/label.h"
class BatteryMenu : public BobbyMenuDisplay
{
using Base = BobbyMenuDisplay;
public:
BatteryMenu();
std::string title() const override;
void initScreen(espgui::TftInterface &tft) override;
void start() override;
void redraw(espgui::TftInterface &tft) override;
void back() override;
private:
bobbygui::DoubleProgressBar m_doubleProgressBarBatPercentage{75, 68, 90, 24, 0, 100, TFT_RED, TFT_GREEN};
espgui::Label m_batPercentNowLabel {170, 68};
espgui::Label m_batPercentBootLabel{170, 82};
};