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

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

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

GLFW.glfwSetClipboardString介绍

[英]Sets the system clipboard to the specified, UTF-8 encoded string.

The specified string is copied before this function returns.

Notes:

  • This function must only be called from the main thread.
    [中]将系统剪贴板设置为指定的UTF-8编码字符串。
    在此函数返回之前复制指定的字符串。
    笔记:
    *只能从主线程调用此函数。

代码示例

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

  1. @Override
  2. public void setContents (String content) {
  3. GLFW.glfwSetClipboardString(((Lwjgl3Graphics)Gdx.graphics).getWindow().getWindowHandle(), content);
  4. }
  5. }

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

  1. @Override
  2. public void setContents (String content) {
  3. GLFW.glfwSetClipboardString(((Lwjgl3Graphics)Gdx.graphics).getWindow().getWindowHandle(), content);
  4. }
  5. }

代码示例来源:origin: SpinyOwl/legui

  1. /**
  2. * Used to set string to clipboard.
  3. *
  4. * @param string string to set to clipboard.
  5. */
  6. @Override
  7. public void setClipboardString(String string) {
  8. GLFW.glfwSetClipboardString(-1, string);
  9. }
  10. }

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

  1. public void setClipboardString(String string)
  2. {
  3. glfwSetClipboardString(handle, string);
  4. }

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

  1. @Override
  2. public void setContents (String content) {
  3. GLFW.glfwSetClipboardString(((Lwjgl3Graphics)Gdx.graphics).getWindow().getWindowHandle(), content);
  4. }
  5. }

相关文章

GLFW类方法