mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-04-02 10:42:14 -04:00
byuu says: This is a few days old, but oh well. This WIP changes nall,hiro,ruby,icarus back to (u)int(8,16,32,64)_t. I'm slowly pushing for (u)int(8,16,32,64) to use my custom Integer<Size>/Natural<Size> classes instead. But it's going to be one hell of a struggle to get that into higan.
28 lines
723 B
C++
28 lines
723 B
C++
#if defined(Hiro_MessageDialog)
|
|
|
|
struct MessageDialog {
|
|
using type = MessageDialog;
|
|
|
|
MessageDialog(const string& text = "");
|
|
auto error(const lstring& buttons = {"Ok"}) -> string;
|
|
auto information(const lstring& buttons = {"Ok"}) -> string;
|
|
auto question(const lstring& buttons = {"Yes", "No"}) -> string;
|
|
auto setParent(sWindow parent = {}) -> type&;
|
|
auto setText(const string& text = "") -> type&;
|
|
auto setTitle(const string& title = "") -> type&;
|
|
auto warning(const lstring& buttons = {"Ok"}) -> string;
|
|
|
|
private:
|
|
struct State {
|
|
lstring buttons;
|
|
vector<uint8_t> icon;
|
|
sWindow parent;
|
|
string response;
|
|
string text;
|
|
string title;
|
|
} state;
|
|
|
|
auto _run() -> string;
|
|
};
|
|
|
|
#endif
|