Class Clipboard

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

Constructors

Methods

  • Returns the object stored in the clipboard or null if no object is stored.

    Type Parameters

    • T

    Parameters

    Returns T

    The stored object or null if no object is stored or the stored object is not of type type.

  • Returns a resource handle from the clipboard.

    Returns Resource

  • Returns the SerializedObject stored in the clipboard, or nullptr if none.

    Returns SerializedObject

  • 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.

  • Sets a component in the clipboard.

    Parameters

    Returns void

  • Stores an object in the clipboard.

    Parameters

    • object: any

    Returns void

  • Set a resource handle in the clipboard.

    Parameters

    Returns boolean

  • Set scene objects to the clipboard.

    Parameters

    • sceneObjects: SceneObject[]

      The scene objects to serialize on the clipboard.

    Returns void

  • Serializes the given IReflectable into the clipboard as a SerializedObject.

    Parameters

    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