
The DisplayApp class isn't used in the Screen base class and most screens, so requiring it is pointless. In this commit, DisplayApp pointers were added to screens which use it and the explicit Screen constructor was removed in those screens.
23 lines
469 B
C++
23 lines
469 B
C++
#pragma once
|
|
|
|
#include "displayapp/screens/Screen.h"
|
|
#include "displayapp/widgets/PageIndicator.h"
|
|
#include <lvgl/lvgl.h>
|
|
|
|
namespace Pinetime {
|
|
namespace Applications {
|
|
namespace Screens {
|
|
|
|
class Label : public Screen {
|
|
public:
|
|
Label(uint8_t screenID, uint8_t numScreens, lv_obj_t* labelText);
|
|
~Label() override;
|
|
|
|
private:
|
|
lv_obj_t* labelText = nullptr;
|
|
Widgets::PageIndicator pageIndicator;
|
|
};
|
|
}
|
|
}
|
|
}
|