1
0
Fork 0
InfiniTime/src/displayapp/screens/Label.cpp
Riku Isokoski ec8a845052
Add PageIndicator widget to reduce code duplication (#1218)
* Move PageIndicator widget to its own files to reduce code duplication
* Use uint8_t in PageIndicator
2022-07-05 07:41:09 +02:00

13 lines
360 B
C++

#include "displayapp/screens/Label.h"
using namespace Pinetime::Applications::Screens;
Label::Label(uint8_t screenID, uint8_t numScreens, Pinetime::Applications::DisplayApp* app, lv_obj_t* labelText)
: Screen(app), labelText {labelText}, pageIndicator(screenID, numScreens) {
pageIndicator.Create();
}
Label::~Label() {
lv_obj_clean(lv_scr_act());
}