class
DragData
public class DragData : QObject Contains drag and drop data for tool widgets. See DragEvent.
Constructors
DragData() Properties
| Name | Type | Description |
|---|---|---|
Assets | IReadOnlyList<DragAssetData> | Interprets Text as a list of asset paths or cloud asset URLs, getting a list of helper objects to access each asset. Generated and cached internally on first access after Text changes. |
Object | Object | An object that can be used to pass drag and drop data |
Text | String | Text data of the drag and drop event. |
Html | String | HTML data of the drag and drop event, if any. |
Url | Uri | URL data of the drag and drop event, if any. |
HasFileOrFolder | Boolean | Whether the drag data has at least 1 file or folder. |
FileOrFolder | String | The first file or folder in the drag data. |
Files | String[] | All files and folders in the drag data. |
Methods
IEnumerable<T> OfType() Helper for finding instances of type in Object. Will find matches if Object is of type , is an IEnumerable with items, or a SerializedObject with targets.
IEnumerable<Object> OfType(Type type) Helper for finding instances of type in Object. Will find matches if Object is of type , is an IEnumerable with items, or a SerializedObject with targets.