Files
crosspoint-reader/src/screens/FullScreenMessageScreen.h

20 lines
590 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:
explicit FullScreenMessageScreen(EpdRenderer* renderer, std::string text, const EpdFontStyle style = REGULAR,
2025-12-06 01:37:20 +11:00
const bool invert = false, const bool partialUpdate = true)
: Screen(renderer), text(std::move(text)), style(style), invert(invert), partialUpdate(partialUpdate) {}
2025-12-03 22:00:29 +11:00
void onEnter() override;
};