本文整理了Java中org.lwjgl.glfw.GLFW.glfwGetClipboardString()
方法的一些代码示例,展示了GLFW.glfwGetClipboardString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GLFW.glfwGetClipboardString()
方法的具体详情如下:
包路径:org.lwjgl.glfw.GLFW
类名称:GLFW
方法名:glfwGetClipboardString
[英]Returns the contents of the system clipboard, if it contains or is convertible to a UTF-8 encoded string. If the clipboard is empty or if its contents cannot be converted, NULL is returned and a #GLFW_FORMAT_UNAVAILABLE error is generated.
The returned string is allocated and freed by GLFW. You should not free it yourself. It is valid until the next call to #glfwGetClipboardString or #glfwSetClipboardString, or until the library is terminated.
代码示例来源:origin: libgdx/libgdx
@Override
public String getContents () {
return GLFW.glfwGetClipboardString(((Lwjgl3Graphics)Gdx.graphics).getWindow().getWindowHandle());
}
代码示例来源:origin: libgdx/libgdx
@Override
public String getContents () {
return GLFW.glfwGetClipboardString(((Lwjgl3Graphics)Gdx.graphics).getWindow().getWindowHandle());
}
代码示例来源:origin: SpinyOwl/legui
/**
* Used to get string from clipboard.
*
* @return string from clipboard.
*/
@Override
public String getClipboardString() {
return GLFW.glfwGetClipboardString(-1);
}
代码示例来源:origin: sriharshachilakapati/SilenceEngine
public String getClipboardString()
{
return glfwGetClipboardString(handle);
}
代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl3
@Override
public String getContents () {
return GLFW.glfwGetClipboardString(((Lwjgl3Graphics)Gdx.graphics).getWindow().getWindowHandle());
}
内容来源于网络,如有侵权,请联系作者删除!