mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-05 07:07:38 +03:00
Some checks are pending
CI / build (push) Waiting to run
## Summary * Update EpdFontFamily::Style to be u8 instead of u32 (saving 3 bytes per word) * Update layout width/height to be u16 from int * Update page element count to be u16 from u32 * Update text block element count to be u16 from u32 * Bumped section bin version to version 8
25 lines
785 B
C++
25 lines
785 B
C++
#pragma once
|
|
#include <EInkDisplay.h>
|
|
#include <EpdFontFamily.h>
|
|
|
|
#include <string>
|
|
#include <utility>
|
|
|
|
#include "../Activity.h"
|
|
|
|
class FullScreenMessageActivity final : public Activity {
|
|
std::string text;
|
|
EpdFontFamily::Style style;
|
|
EInkDisplay::RefreshMode refreshMode;
|
|
|
|
public:
|
|
explicit FullScreenMessageActivity(GfxRenderer& renderer, MappedInputManager& mappedInput, std::string text,
|
|
const EpdFontFamily::Style style = EpdFontFamily::REGULAR,
|
|
const EInkDisplay::RefreshMode refreshMode = EInkDisplay::FAST_REFRESH)
|
|
: Activity("FullScreenMessage", renderer, mappedInput),
|
|
text(std::move(text)),
|
|
style(style),
|
|
refreshMode(refreshMode) {}
|
|
void onEnter() override;
|
|
};
|