com.badlogic.gdx.backends.lwjgl3.Lwjgl3Mini2DxClipboard Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mini2dx-libgdx-desktop-lwjgl3 Show documentation
Show all versions of mini2dx-libgdx-desktop-lwjgl3 Show documentation
mini2Dx LWJGL3 desktop runtime
package com.badlogic.gdx.backends.lwjgl3;
import com.badlogic.gdx.Gdx;
import org.lwjgl.glfw.GLFW;
public class Lwjgl3Mini2DxClipboard extends Lwjgl3Clipboard {
@Override
public String getContents () {
return GLFW.glfwGetClipboardString(((Lwjgl3Mini2DxGraphics) Gdx.graphics).getWindow().getWindowHandle());
}
@Override
public void setContents (String content) {
GLFW.glfwSetClipboardString(((Lwjgl3Mini2DxGraphics)Gdx.graphics).getWindow().getWindowHandle(), content);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy