2025-12-03 22:00:29 +11:00
|
|
|
#pragma once
|
2025-12-08 22:06:09 +11:00
|
|
|
#include <EInkDisplay.h>
|
|
|
|
|
#include <EpdFontFamily.h>
|
|
|
|
|
|
2025-12-03 22:00:29 +11:00
|
|
|
#include <string>
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
|
|
#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-08 22:06:09 +11:00
|
|
|
explicit FullScreenMessageScreen(GfxRenderer& 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-08 22:06:09 +11:00
|
|
|
: Screen(renderer, inputManager), text(std::move(text)), style(style), refreshMode(refreshMode) {}
|
2025-12-03 22:00:29 +11:00
|
|
|
void onEnter() override;
|
|
|
|
|
};
|