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.

43 lines
741B

  1. #pragma once
  2. #include "app.hpp"
  3. #include <GL/glew.h>
  4. #include <GLFW/glfw3.h>
  5. #ifdef ARCH_MAC
  6. #define GUI_MOD_KEY_NAME "Cmd"
  7. #else
  8. #define GUI_MOD_KEY_NAME "Ctrl"
  9. #endif
  10. namespace rack {
  11. extern GLFWwindow *gWindow;
  12. extern NVGcontext *gVg;
  13. extern NVGcontext *gFramebufferVg;
  14. extern std::shared_ptr<Font> gGuiFont;
  15. extern float gPixelRatio;
  16. extern bool gAllowCursorLock;
  17. extern int gGuiFrame;
  18. extern Vec gMousePos;
  19. void guiInit();
  20. void guiDestroy();
  21. void guiRun();
  22. void guiClose();
  23. void guiCursorLock();
  24. void guiCursorUnlock();
  25. bool guiIsModPressed();
  26. bool guiIsShiftPressed();
  27. Vec guiGetWindowSize();
  28. void guiSetWindowSize(Vec size);
  29. Vec guiGetWindowPos();
  30. void guiSetWindowPos(Vec pos);
  31. bool guiIsMaximized();
  32. } // namespace rack