about-dialog.hpp 988 B

12345678910111213141516171819202122232425262728293031323334
  1. #if defined(Hiro_AboutDialog)
  2. struct AboutDialog {
  3. using type = AboutDialog;
  4. auto setAlignment(Alignment = Alignment::Center) -> type&;
  5. auto setAlignment(sWindow relativeTo, Alignment = Alignment::Center) -> type&;
  6. auto setCopyright(const string& copyright = "") -> type&;
  7. auto setDescription(const string& description = "") -> type&;
  8. auto setLicense(const string& license = "", const string& uri = "") -> type&;
  9. auto setLogo(const image& logo = {}) -> type&;
  10. auto setName(const string& name = "") -> type&;
  11. auto setVersion(const string& version = "") -> type&;
  12. auto setWebsite(const string& website = "", const string& uri = "") -> type&;
  13. auto show() -> void;
  14. private:
  15. struct State {
  16. Alignment alignment = Alignment::Center;
  17. string copyright;
  18. string description;
  19. string license;
  20. string licenseURI;
  21. image logo;
  22. string name;
  23. sWindow relativeTo;
  24. string version;
  25. string website;
  26. string websiteURI;
  27. } state;
  28. };
  29. #endif