forked from higan-emu/higan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout-dialog.hpp
33 lines (29 loc) · 988 Bytes
/
about-dialog.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#if defined(Hiro_AboutDialog)
struct AboutDialog {
using type = AboutDialog;
auto setAlignment(Alignment = Alignment::Center) -> type&;
auto setAlignment(sWindow relativeTo, Alignment = Alignment::Center) -> type&;
auto setCopyright(const string& copyright = "") -> type&;
auto setDescription(const string& description = "") -> type&;
auto setLicense(const string& license = "", const string& uri = "") -> type&;
auto setLogo(const image& logo = {}) -> type&;
auto setName(const string& name = "") -> type&;
auto setVersion(const string& version = "") -> type&;
auto setWebsite(const string& website = "", const string& uri = "") -> type&;
auto show() -> void;
private:
struct State {
Alignment alignment = Alignment::Center;
string copyright;
string description;
string license;
string licenseURI;
image logo;
string name;
sWindow relativeTo;
string version;
string website;
string websiteURI;
} state;
};
#endif