2020-09-20 21:58:40 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <borealis.hpp>
|
|
|
|
|
2021-09-11 14:48:13 +01:00
|
|
|
class ChoicePage : public brls::View
|
2020-09-20 21:58:40 +01:00
|
|
|
{
|
2021-09-11 14:48:13 +01:00
|
|
|
private:
|
|
|
|
brls::Button* yes = nullptr;
|
|
|
|
brls::Button* no = nullptr;
|
|
|
|
brls::Label* label = nullptr;
|
2020-09-20 21:58:40 +01:00
|
|
|
|
2021-09-11 14:48:13 +01:00
|
|
|
public:
|
|
|
|
ChoicePage(brls::StagedAppletFrame* frame, const std::string text);
|
|
|
|
void draw(NVGcontext* vg, int x, int y, unsigned width, unsigned height, brls::Style* style, brls::FrameContext* ctx) override;
|
|
|
|
void layout(NVGcontext* vg, brls::Style* style, brls::FontStash* stash) override;
|
|
|
|
brls::View* getDefaultFocus() override;
|
2020-09-20 21:58:40 +01:00
|
|
|
};
|