void Graphics::Minimize() { if (!window2_) return; glfwIconifyWindow(window2_); }
static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) { (void)scancode; (void)mods; if ((key == GLFW_KEY_ESCAPE || key == GLFW_KEY_Q) && action == GLFW_PRESS) glfwSetWindowShouldClose(window, GL_TRUE); if ((key == GLFW_KEY_A || key == GLFW_KEY_LEFT) && (action == GLFW_REPEAT || action == GLFW_PRESS)) if (g_xtrans >= -1.2f) g_xtrans -= 0.1; if ((key == GLFW_KEY_D || key == GLFW_KEY_RIGHT) && (action == GLFW_REPEAT || action == GLFW_PRESS)) if (g_xtrans < 1.5f) g_xtrans += 0.1; if (key == GLFW_KEY_SPACE && action == GLFW_PRESS) glfwIconifyWindow(window); if (key == GLFW_KEY_K && action == GLFW_PRESS) { g_score += 1; if (g_score > 1000) g_score = 0; } if (key == GLFW_KEY_L && action == GLFW_PRESS) { g_life -= 1; if (g_life < 0) g_life = 0; } }
void Window::SetMinimised(const bool minimised) { if (minimised) { glfwIconifyWindow(window); } else { glfwRestoreWindow(window); } }
JNIEXPORT void JNICALL Java_com_badlogic_jglfw_Glfw_glfwIconifyWindow(JNIEnv* env, jclass clazz, jlong window) { //@line:776 glfwIconifyWindow((GLFWwindow*)window); }
void Window:: setFullscreen(bool yes) { if (yes) { glfwRestoreWindow(glfw_handle_); } else { glfwIconifyWindow(glfw_handle_); } }
static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) { printf("%0.2f Key %s\n", glfwGetTime(), action == GLFW_PRESS ? "pressed" : "released"); if (action != GLFW_PRESS) return; switch (key) { case GLFW_KEY_I: glfwIconifyWindow(window); break; case GLFW_KEY_M: glfwMaximizeWindow(window); break; case GLFW_KEY_R: glfwRestoreWindow(window); break; case GLFW_KEY_ESCAPE: glfwSetWindowShouldClose(window, GLFW_TRUE); break; case GLFW_KEY_F11: case GLFW_KEY_ENTER: { if (mods != GLFW_MOD_ALT) return; if (glfwGetWindowMonitor(window)) { glfwSetWindowMonitor(window, NULL, windowed_xpos, windowed_ypos, windowed_width, windowed_height, 0); } else { GLFWmonitor* monitor = glfwGetPrimaryMonitor(); if (monitor) { const GLFWvidmode* mode = glfwGetVideoMode(monitor); glfwGetWindowPos(window, &windowed_xpos, &windowed_ypos); glfwGetWindowSize(window, &windowed_width, &windowed_height); glfwSetWindowMonitor(window, monitor, 0, 0, mode->width, mode->height, mode->refreshRate); } } break; } } }
static void key_callback(GLFWwindow* window, int key, int action) { printf("%0.2f Key %s\n", glfwGetTime(), action == GLFW_PRESS ? "pressed" : "released"); if (action != GLFW_PRESS) return; switch (key) { case GLFW_KEY_SPACE: glfwIconifyWindow(window); break; case GLFW_KEY_ESCAPE: glfwSetWindowShouldClose(window, GL_TRUE); break; } }
static void window_key_callback(GLFWwindow window, int key, int action) { if (action != GLFW_PRESS) return; switch (key) { case GLFW_KEY_ESCAPE: { printf("%0.3f: User pressed Escape\n", glfwGetTime()); running = GL_FALSE; break; } case GLFW_KEY_SPACE: { printf("%0.3f: User pressed Space\n", glfwGetTime()); glfwIconifyWindow(window); break; } } }
void Window::minimize() { glfwIconifyWindow(s_window); }
void kit::Window::minimize() { glfwIconifyWindow(this->m_glfwHandle); }
static int Lwin_iconify(lua_State *L) { GLFWwindow *win = (GLFWwindow*)lbind_check(L, 1, &lbT_Window); glfwIconifyWindow(win); lbind_returnself(L); }
void ofAppGLFWWindow::iconify(bool bIconify){ if(bIconify) glfwIconifyWindow(); else glfwRestoreWindow(); }
void call(GLFWwindow* window) { return glfwIconifyWindow(window); }