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

x33g5p2x  于2022-01-20 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(218)

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

GLFW.glfwIconifyWindow介绍

[英]Iconifies (minimizes) the specified window if it was previously restored. If the window is already iconified, this function does nothing.

If the specified window is a full screen window, the original monitor resolution is restored until the window is restored.

Notes:

  • This function must only be called from the main thread.
  • Wayland: There is no concept of iconification in wl_shell, this function will emit #GLFW_PLATFORM_ERROR when using this deprecated protocol.
    [中]如果指定的窗口以前已还原,则将其图标化(最小化)。如果窗口已图标化,则此函数不执行任何操作。
    如果指定的窗口是全屏窗口,则恢复原始监视器分辨率,直到恢复该窗口为止。
    笔记:
    *只能从主线程调用此函数。
    *Wayland:wl_shell中没有图标化的概念,当使用此不推荐使用的协议时,此函数将发出#GLFW_PLATFORM_错误。

代码示例

代码示例来源:origin: libgdx/libgdx

  1. /**
  2. * Minimizes (iconifies) the window. Iconified windows do not call
  3. * their {@link ApplicationListener} until the window is restored.
  4. */
  5. public void iconifyWindow() {
  6. GLFW.glfwIconifyWindow(windowHandle);
  7. }

代码示例来源:origin: libgdx/libgdx

  1. /**
  2. * Minimizes (iconifies) the window. Iconified windows do not call
  3. * their {@link ApplicationListener} until the window is restored.
  4. */
  5. public void iconifyWindow() {
  6. GLFW.glfwIconifyWindow(windowHandle);
  7. }

代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl3

  1. /**
  2. * Minimizes (iconifies) the window. Iconified windows do not call
  3. * their {@link ApplicationListener} until the window is restored.
  4. */
  5. public void iconifyWindow() {
  6. GLFW.glfwIconifyWindow(windowHandle);
  7. }

代码示例来源:origin: sriharshachilakapati/SilenceEngine

  1. /**
  2. * <p> This method iconifies (minimizes) this window if it was previously restored. If the window is already
  3. * iconified, this method does nothing.</p>
  4. *
  5. * <p> If this window is a full screen window, the original monitor resolution is restored until the window is
  6. * restored again.</p>
  7. */
  8. public void iconify()
  9. {
  10. glfwIconifyWindow(handle);
  11. }

相关文章

GLFW类方法