本文整理了Java中org.lwjgl.glfw.GLFW.glfwHideWindow()
方法的一些代码示例,展示了GLFW.glfwHideWindow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GLFW.glfwHideWindow()
方法的具体详情如下:
包路径:org.lwjgl.glfw.GLFW
类名称:GLFW
方法名:glfwHideWindow
[英]Hides the specified window, if it was previously visible. If the window is already hidden or is in full screen mode, this function does nothing.
This function must only be called from the main thread.
[中]隐藏指定的窗口(如果以前可见)。如果窗口已隐藏或处于全屏模式,则此功能不执行任何操作。
只能从主线程调用此函数。
代码示例来源:origin: libgdx/libgdx
/**
* Sets the visibility of the window. Invisible windows will still
* call their {@link ApplicationListener}
*/
public void setVisible(boolean visible) {
if(visible) {
GLFW.glfwShowWindow(windowHandle);
} else {
GLFW.glfwHideWindow(windowHandle);
}
}
代码示例来源:origin: libgdx/libgdx
/**
* Sets the visibility of the window. Invisible windows will still
* call their {@link ApplicationListener}
*/
public void setVisible(boolean visible) {
if(visible) {
GLFW.glfwShowWindow(windowHandle);
} else {
GLFW.glfwHideWindow(windowHandle);
}
}
代码示例来源:origin: sriharshachilakapati/SilenceEngine
/**
* This method hides this window if it was previously visible. If the window is already hidden or is in full screen
* mode, this method does nothing.
*/
public void hide()
{
glfwHideWindow(handle);
}
代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl3
/**
* Sets the visibility of the window. Invisible windows will still
* call their {@link ApplicationListener}
*/
public void setVisible(boolean visible) {
if(visible) {
GLFW.glfwShowWindow(windowHandle);
} else {
GLFW.glfwHideWindow(windowHandle);
}
}
内容来源于网络,如有侵权,请联系作者删除!