本文整理了Java中org.lwjgl.glfw.GLFW.glfwFocusWindow()
方法的一些代码示例,展示了GLFW.glfwFocusWindow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GLFW.glfwFocusWindow()
方法的具体详情如下:
包路径:org.lwjgl.glfw.GLFW
类名称:GLFW
方法名:glfwFocusWindow
[英]Brings the specified window to front and sets input focus. The window should already be visible and not iconified.
By default, both windowed and full screen mode windows are focused when initially created. Set the #GLFW_FOCUSED hint to disable this behavior.
Also by default, windowed mode windows are focused when shown with #glfwShowWindow. Set the #GLFW_FOCUS_ON_SHOW window hint to disable this behavior.
Do not use this function to steal focus from other applications unless you are certain that is what the user wants. Focus stealing can be extremely disruptive.
For a less disruptive way of getting the user's attention, see #glfwRequestWindowAttention.
Notes:
代码示例来源:origin: libgdx/libgdx
/**
* Brings the window to front and sets input focus. The window should already be visible and not iconified.
*/
public void focusWindow() {
GLFW.glfwFocusWindow(windowHandle);
}
代码示例来源:origin: libgdx/libgdx
/**
* Brings the window to front and sets input focus. The window should already be visible and not iconified.
*/
public void focusWindow() {
GLFW.glfwFocusWindow(windowHandle);
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
org.lwjgl.glfw.GLFW.glfwFocusWindow(window);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
glfwShowWindow(window);
glfwFocusWindow(window);
代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl3
/**
* Brings the window to front and sets input focus. The window should already be visible and not iconified.
*/
public void focusWindow() {
GLFW.glfwFocusWindow(windowHandle);
}
内容来源于网络,如有侵权,请联系作者删除!