Files
esp-gui-lib/src/displaywithtitle.cpp
T
2021-11-01 22:21:29 +01:00

26 lines
421 B
C++

#include "displaywithtitle.h"
// local includes
#include "tftinstance.h"
namespace espgui {
void DisplayWithTitle::initScreen()
{
Base::initScreen();
m_titleLabel.start();
tft.fillRect(0, 33, tft.width(), 3, TFT_WHITE);
}
void DisplayWithTitle::redraw()
{
Base::redraw();
tft.setTextFont(4);
tft.setTextColor(TFT_YELLOW, TFT_BLACK);
m_titleLabel.redraw(text());
}
} // namespace espgui