application.hpp 616 B

123456789101112131415161718192021222324252627
  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. int modalCount = 0; //number of modal loops
  14. Timer modalTimer; //to run Application during modal events
  15. pToolTip* toolTip = nullptr; //active toolTip
  16. };
  17. static auto state() -> State&;
  18. };
  19. }
  20. #endif