Class ClipboardHelper

java.lang.Object
org.polyfrost.oneconfig.utils.v1.ClipboardHelper

public final class ClipboardHelper extends Object
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 Details

    • getString

      @Nullable public static @Nullable String getString()
    • setString

      public static boolean setString(@Nullable @Nullable String value)
    • setImage

      public static boolean setImage(BufferedImage image)
    • setTransferable

      public static boolean setTransferable(@Nullable @Nullable Transferable transferable)
    • clear

      public static boolean clear()