settings.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. struct Settings {
  2. auto load() -> void;
  3. auto save() -> void;
  4. auto properties(bool mode, Markup::Node document) -> void;
  5. struct {
  6. string driver = Video::safestDriver();
  7. string monitor = "Primary";
  8. string format = "ARGB24";
  9. bool exclusive = false;
  10. bool blocking = false;
  11. bool flush = false;
  12. double luminance = 1.0;
  13. double saturation = 1.0;
  14. double gamma = 1.0;
  15. string output = "Center";
  16. bool aspectCorrection = true;
  17. uint scale = 2;
  18. string shader = "Blur";
  19. } video;
  20. struct {
  21. string driver = Audio::safestDriver();
  22. string device = "Default";
  23. uint frequency = 48000;
  24. uint latency = 0;
  25. bool exclusive = false;
  26. bool blocking = true;
  27. bool dynamic = false;
  28. int skew = 0;
  29. double volume = 1.0;
  30. double balance = 0.0;
  31. bool mute = false;
  32. } audio;
  33. struct {
  34. string driver = Input::safestDriver();
  35. string unfocused = "Block";
  36. } input;
  37. struct {
  38. bool showStatusBar = true;
  39. bool showSystemPanels = true;
  40. bool advancedMode = false;
  41. } interface;
  42. };
  43. extern Settings settings;