crosspoint-reader/src/screens/FullScreenMessageScreen.h

22 lines
688 B
C
Raw Normal View History

2025-12-03 22:00:29 +11:00
#pragma once
#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;
EpdFontStyle style;
EInkDisplay::RefreshMode refreshMode;
2025-12-03 22:00:29 +11:00
public:
explicit FullScreenMessageScreen(GfxRenderer& renderer, InputManager& inputManager, std::string text,
const EpdFontStyle style = REGULAR,
const EInkDisplay::RefreshMode refreshMode = EInkDisplay::FAST_REFRESH)
: Screen(renderer, inputManager), text(std::move(text)), style(style), refreshMode(refreshMode) {}
2025-12-03 22:00:29 +11:00
void onEnter() override;
};