2025-12-03 22:00:29 +11:00
|
|
|
#pragma once
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
2025-12-08 19:48:49 +11:00
|
|
|
#include <EInkDisplay.h>
|
|
|
|
|
#include <EpdFontFamily.h>
|
2025-12-03 22:00:29 +11:00
|
|
|
#include "Screen.h"
|
|
|
|
|
|
|
|
|
|
class FullScreenMessageScreen final : public Screen {
|
|
|
|
|
std::string text;
|
2025-12-06 00:34:16 +11:00
|
|
|
EpdFontStyle style;
|
2025-12-08 19:48:49 +11:00
|
|
|
EInkDisplay::RefreshMode refreshMode;
|
2025-12-03 22:00:29 +11:00
|
|
|
|
|
|
|
|
public:
|
2025-12-06 12:56:39 +11:00
|
|
|
explicit FullScreenMessageScreen(EpdRenderer& renderer, InputManager& inputManager, std::string text,
|
2025-12-08 19:48:49 +11:00
|
|
|
const EpdFontStyle style = REGULAR,
|
|
|
|
|
const EInkDisplay::RefreshMode refreshMode = EInkDisplay::FAST_REFRESH)
|
2025-12-06 12:35:41 +11:00
|
|
|
: Screen(renderer, inputManager),
|
|
|
|
|
text(std::move(text)),
|
|
|
|
|
style(style),
|
2025-12-08 19:48:49 +11:00
|
|
|
refreshMode(refreshMode) {}
|
2025-12-03 22:00:29 +11:00
|
|
|
void onEnter() override;
|
|
|
|
|
};
|