💿🐜 Antkeeper source code https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.6 KiB

  1. /*
  2. * Copyright (C) 2023 Christopher J. Howard
  3. *
  4. * This file is part of Antkeeper source code.
  5. *
  6. * Antkeeper source code is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Antkeeper source code is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with Antkeeper source code. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef ANTKEEPER_APP_DISPLAY_EVENTS_HPP
  20. #define ANTKEEPER_APP_DISPLAY_EVENTS_HPP
  21. #include <engine/app/display-orientation.hpp>
  22. namespace app {
  23. class display;
  24. /**
  25. * Event generated when a display has been connected.
  26. */
  27. struct display_connected_event
  28. {
  29. /// Pointer to the display that has been connected.
  30. const display* display;
  31. };
  32. /**
  33. * Event generated when a display has been disconnected.
  34. */
  35. struct display_disconnected_event
  36. {
  37. /// Pointer to the display that has been disconnected.
  38. const display* display;
  39. };
  40. /**
  41. * Event generated when the orientation of a display has changed.
  42. */
  43. struct display_orientation_changed_event
  44. {
  45. /// Pointer to the display that has had it's orientation changed.
  46. const display* display;
  47. /// Orientation of the display.
  48. display_orientation orientation;
  49. };
  50. } // namespace app
  51. #endif // ANTKEEPER_APP_DISPLAY_EVENTS_HPP