2020-03-22 12:03:17 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Screen.h"
|
2020-08-14 09:46:37 +02:00
|
|
|
#include <lvgl/lvgl.h>
|
2020-03-22 12:03:17 +01:00
|
|
|
|
|
|
|
namespace Pinetime {
|
|
|
|
namespace Applications {
|
|
|
|
namespace Screens {
|
2020-08-14 09:46:37 +02:00
|
|
|
|
2020-08-14 10:05:44 +02:00
|
|
|
class Label : public Screen {
|
2020-08-14 09:46:37 +02:00
|
|
|
public:
|
2021-04-04 04:08:51 +02:00
|
|
|
Label( uint8_t screenID, uint8_t numScreens,
|
|
|
|
DisplayApp* app, lv_obj_t* labelText );
|
2020-08-14 10:05:44 +02:00
|
|
|
~Label() override;
|
2021-04-04 04:08:51 +02:00
|
|
|
|
|
|
|
bool Refresh() override;
|
|
|
|
|
2020-08-14 09:46:37 +02:00
|
|
|
|
|
|
|
private:
|
2021-04-04 04:08:51 +02:00
|
|
|
|
|
|
|
bool running = true;
|
|
|
|
|
|
|
|
lv_obj_t * labelText = nullptr;
|
|
|
|
lv_point_t pageIndicatorBasePoints[2];
|
|
|
|
lv_point_t pageIndicatorPoints[2];
|
|
|
|
lv_obj_t* pageIndicatorBase;
|
|
|
|
lv_obj_t* pageIndicator;
|
2020-08-14 09:46:37 +02:00
|
|
|
};
|
2020-03-22 12:03:17 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|