Package org.polyfrost.oneconfig.utils.v1
Class ClipboardHelper
java.lang.Object
org.polyfrost.oneconfig.utils.v1.ClipboardHelper
Cross-platform system clipboard access
Uses SDL when the game window runs on it, otherwise GLFW/AWT on Windows/Linux and NSPasteboard on macOS
Images prefer AWT on Windows and NSPasteboard on macOS, falling back to SDL
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanclear()static @Nullable Stringstatic booleansetImage(BufferedImage image) static booleanstatic booleansetTransferable(@Nullable Transferable transferable)
-
Method Details
-
getString
-
setString
-
setImage
-
setTransferable
-
clear
public static boolean clear()
-