MCPcopy Create free account
hub / github.com/VCVRack/Rack / windowPosCallback

Function windowPosCallback

src/window/Window.cpp:118–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117
118static void windowPosCallback(GLFWwindow* win, int x, int y) {
119 if (glfwGetWindowAttrib(win, GLFW_MAXIMIZED))
120 return;
121 if (glfwGetWindowAttrib(win, GLFW_ICONIFIED))
122 return;
123 if (glfwGetWindowMonitor(win))
124 return;
125 settings::windowPos = math::Vec(x, y);
126 // DEBUG("windowPosCallback %d %d", x, y);
127}
128
129
130static void windowSizeCallback(GLFWwindow* win, int width, int height) {

Callers

nothing calls this directly

Calls 1

VecClass · 0.85

Tested by

no test coverage detected