application.hpp 612 B

1234567891011121314151617181920212223242526272829303132
  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. struct State {
  13. vector<pWindow*> windows;
  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. }
  23. #endif