Something went wrong. Try again.
A fork of https://github.com/crosspoint-reader/crosspoint-reader
Something went wrong. Try again.
822 B · 29 lines
C
at master
123456789101112131415161718192021222324252627282930#pragma once
#include <Epub/FootnoteEntry.h>
#include <cstring>#include <functional>#include <vector>
#include "../Activity.h"#include "util/ButtonNavigator.h"
class EpubReaderFootnotesActivity final : public Activity { public: explicit EpubReaderFootnotesActivity(GfxRenderer& renderer, MappedInputManager& mappedInput, const std::vector<FootnoteEntry>& footnotes) : Activity("EpubReaderFootnotes", renderer, mappedInput), footnotes(footnotes) {}
void onEnter() override; void onExit() override; void loop() override; void render(RenderLock&&) override; bool isReaderActivity() const override { return true; }
private: const std::vector<FootnoteEntry>& footnotes; int selectedIndex = 0; int scrollOffset = 0; ButtonNavigator buttonNavigator;};