Advertisement
Guest User

MonitorConfig.h

a guest
Oct 17th, 2021
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.94 KB | None | 0 0
  1. #ifndef MONITORCONFIG_H
  2. #define MONITORCONFIG_H
  3. /* C system icnludes */
  4.  
  5. /* C++ system icnludes */
  6. #include <cstdlib>
  7. #include <string>
  8. #include <array>
  9. #include <unordered_map>
  10.  
  11. /* Third-party icnludes */
  12.  
  13. /* Own icnludes */
  14. #include <utils/drawing/Point.h>
  15.  
  16. /* Forward Declaration */
  17.  
  18. enum displayConfig {
  19.     WINDOW_NAME,
  20.     DISPLAY_HEIGHT,
  21.     DISPLAY_WIDTH,
  22.     DISPLAY_CONFIG_COUNT
  23. };
  24.  
  25. enum configType {
  26.     INT,
  27.     STRING,
  28.     BOOLEAN
  29. };
  30.  
  31. const std::array<std::string, DISPLAY_CONFIG_COUNT> displayConfigStr{
  32.     "WINDOW_NAME",
  33.     "DISPLAY_HEIGHT",
  34.     "DISPLAY_WIDTH"};
  35.  
  36. typedef std::unordered_map<std::string, std::string> configData;
  37.  
  38. enum WindowFlags {
  39.     WINDOW_SHOWN = 4,
  40.     WINDOW_FULLSCREEN = 4097
  41. };
  42.  
  43. struct MonitorConfig {
  44.     std::string windowName = "";
  45.     Point windowPos = Point::UNDEFINED;
  46.  
  47.     int32_t windowWidth = 0;
  48.     int32_t windowHeight = 0;
  49.     WindowFlags windowFlags = WINDOW_SHOWN;
  50. };
  51.  
  52. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement