Class ClipboardProxyGTK4

java.lang.Object
org.eclipse.swt.dnd.ClipboardProxyGTK4

class ClipboardProxyGTK4 extends Object
Clipboard proxy used to copy data to the clipboard in GTK4 only. This class has a different life-cycle than Clipboard. Each display has exactly one proxy.
See Also:
  • Field Details

    • ID

      private static String ID
    • display

      private Display display
    • activeClipboard

      private Clipboard activeClipboard
    • activePrimaryClipboard

      private Clipboard activePrimaryClipboard
    • contentProviders

      private final ContentProviders contentProviders
  • Constructor Details

    • ClipboardProxyGTK4

      private ClipboardProxyGTK4(Display display)
  • Method Details

    • _getInstance

      static ClipboardProxyGTK4 _getInstance(Display display)
    • clear

      void clear(Clipboard owner, int clipboards, boolean takeOwnership)
      Clear the contents of the specified clipboards
      Parameters:
      owner - the calling SWT Clipboard
      clipboards - which clipboards to clear
      takeOwnership - normally we only clear the clipboard if we own it, takeOwnership will take ownership of the clipboard and clear it. If there is a clipboard manager the ownership may be immediately transferred back to the manager.
      See Also:
    • dispose

      private void dispose()
    • storeClipboard

      private CompletableFuture<Boolean> storeClipboard(long clipboard)
    • setData

      boolean setData(Clipboard owner, Object[] data, Transfer[] dataTypes, int clipboards)
    • getData

      public CompletableFuture<Object> getData(Clipboard owner, Transfer transfer, int clipboards)