Skip to main content

clipboard

Classes

ClassDescription
BlockPasterAn object that can paste data into a workspace.

Functions

FunctionDescription
copyCopy a copyable item, and record its data and the workspace it was copied from.
getLastCopiedDataGets the copy data for the last item copied. This is useful if you are implementing custom copy/paste behavior. If you want the default behavior, just use the copy and paste methods directly.
setLastCopiedDataSets the last copied item. You should call this method if you implement custom copy behavior, so that other callers are working with the correct data. This method is called automatically if you use the built-in copy method.
getLastCopiedWorkspaceGets the workspace that was last copied from. This is useful if you are implementing custom copy/paste behavior and want to paste on the same workspace that was copied from. If you want the default behavior, just use the copy and paste methods directly.
setLastCopiedWorkspaceSets the workspace that was last copied from. You should call this method if you implement custom copy behavior, so that other callers are working with the correct data. This method is called automatically if you use the built-in copy method.
getLastCopiedLocationGets the location that was last copied from. This is useful if you are implementing custom copy/paste behavior. If you want the default behavior, just use the copy and paste methods directly.
setLastCopiedLocationSets the location that was last copied from. You should call this method if you implement custom copy behavior, so that other callers are working with the correct data. This method is called automatically if you use the built-in copy method.
pastePastes the given data into the workspace, or the last copied ICopyable if no data is passed.

Interfaces

InterfaceDescription
BlockCopyData-

Namespaces

NamespaceDescription
registry-