Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/WM_types.h
| Show First 20 Lines • Show All 938 Lines • ▼ Show 20 Lines | typedef struct wmDragAsset { | ||||
| /* NOTE: Can't store the #AssetHandle here, since the #FileDirEntry it wraps may be freed while | /* NOTE: Can't store the #AssetHandle here, since the #FileDirEntry it wraps may be freed while | ||||
| * dragging. So store necessary data here directly. */ | * dragging. So store necessary data here directly. */ | ||||
| char name[64]; /* MAX_NAME */ | char name[64]; /* MAX_NAME */ | ||||
| /* Always freed. */ | /* Always freed. */ | ||||
| const char *path; | const char *path; | ||||
| int id_type; | int id_type; | ||||
| int import_type; /* eFileAssetImportType */ | int import_type; /* eFileAssetImportType */ | ||||
| /* FIXME: This is temporary evil solution to get scene/viewlayer/etc in the copy callback of the | |||||
| * #wmDropBox. | |||||
| * TODO: Handle link/append in operator called at the end of the drop process, and NOT in its | |||||
| * copy callback. | |||||
| * */ | |||||
| struct bContext *evil_C; | |||||
| } wmDragAsset; | } wmDragAsset; | ||||
| typedef char *(*WMDropboxTooltipFunc)(struct bContext *, | typedef char *(*WMDropboxTooltipFunc)(struct bContext *, | ||||
| struct wmDrag *, | struct wmDrag *, | ||||
| const struct wmEvent *event, | const struct wmEvent *event, | ||||
| struct wmDropBox *drop); | struct wmDropBox *drop); | ||||
| typedef struct wmDrag { | typedef struct wmDrag { | ||||
| ▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines | |||||