crosspoint-reader/src/screens/FullScreenMessageScreen.h

24 lines
711 B
C
Raw Normal View History

2025-12-03 22:00:29 +11:00
#pragma once
#include <string>
#include <utility>
#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;
EpdFontStyle style;
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,
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),
refreshMode(refreshMode) {}
2025-12-03 22:00:29 +11:00
void onEnter() override;
};