application.hpp 665 B

123456789101112131415161718192021222324252627282930313233
  1. #if defined(Hiro_Application)
  2. namespace hiro {
  3. struct pApplication {
  4. static auto exit() -> void;
  5. static auto modal() -> bool;
  6. static auto run() -> void;
  7. static auto pendingEvents() -> bool;
  8. static auto processEvents() -> void;
  9. static auto quit() -> void;
  10. static auto setScreenSaver(bool screenSaver) -> void;
  11. static auto initialize() -> void;
  12. static auto synchronize() -> void;
  13. struct State {
  14. #if defined(DISPLAY_XORG)
  15. XlibDisplay* display = nullptr;
  16. XlibWindow screenSaverWindow = 0;
  17. bool screenSaverXDG = false;
  18. #endif
  19. };
  20. static auto state() -> State&;
  21. };
  22. static QApplication* qtApplication = nullptr;
  23. }
  24. #endif