Files
sphaira/sphaira/include/ui/error_box.hpp
ITotalJustice 0370e47f7f public release
2024-12-16 21:13:05 +00:00

24 lines
522 B
C++

#pragma once
#include "ui/widget.hpp"
#include <optional>
namespace sphaira::ui {
class ErrorBox final : public Widget {
public:
ErrorBox(Result code, const std::string& message);
auto Update(Controller* controller, TouchInfo* touch) -> void override;
auto OnLayoutChange() -> void override;
auto Draw(NVGcontext* vg, Theme* theme) -> void override;
private:
Result m_code;
std::string m_message;
std::string m_module_str;
std::string m_description_str;
};
} // namespace sphaira::ui