Class Clipboard

A class abstracting the OS clipboad functionality and allowing to set and get data.

Constructors

Methods

  • Returns a resource handle from the clipboard.

    Returns Resource

  • Reads a string from the clipboard and returns it. If there is no string in the clipboard it returns an empty string.

    Returns string

    Both wide and normal strings will be read, but normal strings will be converted to a wide string before returning.

    Thread safe.

  • Set scene objects to the clipboard.

    Parameters

    • sceneObjects: SceneObject[]

      The scene objects to serialize on the clipboard.

    Returns void

  • Set some text to the clipboard.

    Parameters

    • text: string

    Returns void

    Thread safe.

  • Set texture to clipboard.

    Parameters

    • pixelData: PixelData

      The pixel information to serialize.

    Returns void