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

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

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

GLFW.glfwSetWindowTitle介绍

[英]Sets the window title, encoded as UTF-8, of the specified window.

This function must only be called from the main thread.

macOS: The window title will not be updated until the next time you process events.
[中]设置指定窗口的窗口标题(编码为UTF-8)。
只能从主线程调用此函数。
macOS:在下次处理事件之前,窗口标题不会更新。

代码示例

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

public void setTitle (CharSequence title){
  GLFW.glfwSetWindowTitle(windowHandle, title);
}

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

public void setTitle (CharSequence title){
  GLFW.glfwSetWindowTitle(windowHandle, title);
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

/**
 * Set the title if it's a windowed display
 *
 * @param title the title to set
 */
public void setTitle(final String title) {
  if (created.get() && window != NULL) {
    glfwSetWindowTitle(window, title);
  }
}

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

@Override
public void setTitle(String title) {
  if (title == null) {
    title = "";
  }
  GLFW.glfwSetWindowTitle(window.getWindowHandle(), title);
}

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

@Override
public void setTitle(String title) {
  if (title == null) {
    title = "";
  }
  GLFW.glfwSetWindowTitle(window.getWindowHandle(), title);
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

/**
 * Set the title if it's a windowed display
 *
 * @param title the title to set
 */
public void setTitle(final String title) {
  if (created.get() && window != NULL) {
    glfwSetWindowTitle(window, title);
  }
}

代码示例来源:origin: FedUni/caliko

/**
 * Set the window title to the specified String argument.
 * 
 * @param    title    The String that will be used as the title of the window.
 */
public void setWindowTitle(String title)   { glfwSetWindowTitle(mWindowId, title); }

代码示例来源:origin: lwjglgamedev/lwjglbook

public void setWindowTitle(String title) {
  glfwSetWindowTitle(windowHandle, title);
}

代码示例来源:origin: lwjglgamedev/lwjglbook

public void setWindowTitle(String title) {
  glfwSetWindowTitle(windowHandle, title);
}

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

/**
 * This method sets the title of the window, which is a string encoding in UTF-8.
 *
 * @param title The new title of this window.
 */
public void setTitle(String title)
{
  this.title = title;
  glfwSetWindowTitle(handle, title);
}

代码示例来源:origin: lwjglgamedev/lwjglbook

public void setWindowTitle(String title) {
  glfwSetWindowTitle(windowHandle, title);
}

代码示例来源:origin: lwjglgamedev/lwjglbook

public void setWindowTitle(String title) {
  glfwSetWindowTitle(windowHandle, title);
}

代码示例来源:origin: lwjglgamedev/lwjglbook

public void setWindowTitle(String title) {
  glfwSetWindowTitle(windowHandle, title);
}

代码示例来源:origin: lwjglgamedev/lwjglbook

public void setWindowTitle(String title) {
  glfwSetWindowTitle(windowHandle, title);
}

代码示例来源:origin: lwjglgamedev/lwjglbook

public void setWindowTitle(String title) {
  glfwSetWindowTitle(windowHandle, title);
}

代码示例来源:origin: lwjglgamedev/lwjglbook

public void setWindowTitle(String title) {
  glfwSetWindowTitle(windowHandle, title);
}

代码示例来源:origin: lwjglgamedev/lwjglbook

public void setWindowTitle(String title) {
  glfwSetWindowTitle(windowHandle, title);
}

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

@Override void setTitle (String title) {
 if (window != 0L) glfwSetWindowTitle(window, title);
}

代码示例来源:origin: org.jmonkeyengine/jme3-lwjgl3

/**
 * Set the title if its a windowed display
 *
 * @param title the title to set
 */
public void setTitle(final String title) {
  if (created.get() && window != NULL) {
    glfwSetWindowTitle(window, title);
  }
}

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

@Override
public void setTitle(String title) {
  if (title == null) {
    title = "";
  }
  GLFW.glfwSetWindowTitle(window.getWindowHandle(), title);
}

相关文章

GLFW类方法