crosspoint-reader/src/screens/FullScreenMessageScreen.h

25 lines
699 B
C
Raw Normal View History

2025-12-03 22:00:29 +11:00
#pragma once
#include <string>
#include <utility>
#include "EpdFontFamily.h"
2025-12-03 22:00:29 +11:00
#include "Screen.h"
class FullScreenMessageScreen final : public Screen {
std::string text;
EpdFontStyle style;
2025-12-03 22:00:29 +11:00
bool invert;
2025-12-06 01:37:20 +11:00
bool partialUpdate;
2025-12-03 22:00:29 +11:00
public:
2025-12-06 12:35:41 +11:00
explicit FullScreenMessageScreen(EpdRenderer* renderer, InputManager& inputManager, std::string text,
const EpdFontStyle style = REGULAR, const bool invert = false,
const bool partialUpdate = true)
: Screen(renderer, inputManager),
text(std::move(text)),
style(style),
invert(invert),
partialUpdate(partialUpdate) {}
2025-12-03 22:00:29 +11:00
void onEnter() override;
};