org.lwjgl.glfw.GLFW.glfwHideWindow()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(138)

本文整理了Java中org.lwjgl.glfw.GLFW.glfwHideWindow()方法的一些代码示例,展示了GLFW.glfwHideWindow()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GLFW.glfwHideWindow()方法的具体详情如下:
包路径:org.lwjgl.glfw.GLFW
类名称:GLFW
方法名:glfwHideWindow

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);
  }
}

相关文章

GLFW类方法