2020-09-20 21:58:40 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <borealis.hpp>
|
|
|
|
|
|
|
|
class ChoicePage: public brls::View
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
brls::Button* yes = nullptr;
|
|
|
|
brls::Button* no = nullptr;
|
|
|
|
brls::Label* label = nullptr;
|
|
|
|
|
|
|
|
public:
|
2021-07-17 13:29:55 +01:00
|
|
|
ChoicePage(brls::StagedAppletFrame* frame, const std::string text);
|
2020-09-20 21:58:40 +01:00
|
|
|
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;
|
2021-04-15 12:24:11 +01:00
|
|
|
brls::View* getDefaultFocus() override;
|
2020-09-20 21:58:40 +01:00
|
|
|
};
|