Lines Matching refs:window
75 GLFWwindow* window = glfwCreateWindow(600, 660, "Window Features", NULL, NULL);
76 if (!window)
81 glfwSetInputMode(window, GLFW_UNLIMITED_MOUSE_BUTTONS, GLFW_TRUE);
83 glfwMakeContextCurrent(window);
90 glfwGetWindowPos(window, &last_xpos, &last_ypos);
96 glfwGetWindowSize(window, &last_width, &last_height);
108 struct nk_context* nk = nk_glfw3_init(window, NK_GLFW3_INSTALL_CALLBACKS);
114 strncpy(window_title, glfwGetWindowTitle(window), sizeof(window_title));
116 while (!(may_close && glfwWindowShouldClose(window)))
120 glfwGetWindowSize(window, &width, &height);
130 if (glfwGetWindowMonitor(window))
134 glfwSetWindowMonitor(window, NULL,
145 glfwGetWindowPos(window, &windowed_x, &windowed_y);
146 glfwGetWindowSize(window, &windowed_width, &windowed_height);
147 glfwSetWindowMonitor(window, monitor,
154 glfwMaximizeWindow(window);
156 glfwIconifyWindow(window);
158 glfwRestoreWindow(window);
164 glfwHideWindow(window);
170 glfwShowWindow(window);
174 glfwIconifyWindow(window);
180 glfwRequestWindowAttention(window);
185 if (glfwGetWindowAttrib(window, GLFW_MOUSE_PASSTHROUGH))
189 if (glfwGetKey(window, GLFW_KEY_H))
190 glfwSetWindowAttrib(window, GLFW_MOUSE_PASSTHROUGH, false);
207 glfwSetWindowTitle(window, window_title);
213 glfwGetWindowPos(window, &xpos, &ypos);
224 glfwSetWindowPos(window, xpos, ypos);
235 glfwSetWindowPos(window, xpos, ypos);
244 nk_label(nk, "Platform does not support window position", NK_TEXT_LEFT);
255 glfwSetWindowSize(window, width, height);
266 glfwSetWindowSize(window, width, height);
303 glfwSetWindowAspectRatio(window, aspect_numer, aspect_denom);
305 glfwSetWindowAspectRatio(window, GLFW_DONT_CARE, GLFW_DONT_CARE);
362 glfwSetWindowSizeLimits(window,
370 glfwGetFramebufferSize(window, &fb_width, &fb_height);
376 glfwGetWindowContentScale(window, &xscale, &yscale);
383 glfwGetWindowFrameSize(window, &frame_left, &frame_top, &frame_right, &frame_bottom);
397 float opacity = glfwGetWindowOpacity(window);
402 glfwSetWindowOpacity(window, opacity);
406 int should_close = glfwWindowShouldClose(window);
409 glfwSetWindowShouldClose(window, should_close);
419 int decorated = glfwGetWindowAttrib(window, GLFW_DECORATED);
421 glfwSetWindowAttrib(window, GLFW_DECORATED, decorated);
423 int resizable = glfwGetWindowAttrib(window, GLFW_RESIZABLE);
425 glfwSetWindowAttrib(window, GLFW_RESIZABLE, resizable);
427 int floating = glfwGetWindowAttrib(window, GLFW_FLOATING);
429 glfwSetWindowAttrib(window, GLFW_FLOATING, floating);
431 int passthrough = glfwGetWindowAttrib(window, GLFW_MOUSE_PASSTHROUGH);
433 glfwSetWindowAttrib(window, GLFW_MOUSE_PASSTHROUGH, passthrough);
435 int auto_iconify = glfwGetWindowAttrib(window, GLFW_AUTO_ICONIFY);
437 glfwSetWindowAttrib(window, GLFW_AUTO_ICONIFY, auto_iconify);
439 nk_value_bool(nk, "Focused", glfwGetWindowAttrib(window, GLFW_FOCUSED));
440 nk_value_bool(nk, "Hovered", glfwGetWindowAttrib(window, GLFW_HOVERED));
441 nk_value_bool(nk, "Visible", glfwGetWindowAttrib(window, GLFW_VISIBLE));
442 nk_value_bool(nk, "Iconified", glfwGetWindowAttrib(window, GLFW_ICONIFIED));
443 nk_value_bool(nk, "Maximized", glfwGetWindowAttrib(window, GLFW_MAXIMIZED));
449 glfwSwapBuffers(window);