|
Blender V5.0
|
Inherits blender::ui::AbstractViewItemDragController.
Public Member Functions | |
| AssetDragController (ui::AbstractGridView &view, asset_system::AssetRepresentation &asset) | |
| std::optional< eWM_DragDataType > | get_drag_type () const override |
| void * | create_drag_data () const override |
| void | on_drag_start (bContext &C) override |
| Public Member Functions inherited from blender::ui::AbstractViewItemDragController | |
| virtual | ~AbstractViewItemDragController ()=default |
| AbstractViewItemDragController (AbstractView &view) | |
| template<class ViewType> | |
| ViewType & | get_view () const |
Additional Inherited Members | |
| Protected Attributes inherited from blender::ui::AbstractViewItemDragController | |
| AbstractView & | view_ |
Definition at line 75 of file asset_shelf_asset_view.cc.
| blender::ed::asset::shelf::AssetDragController::AssetDragController | ( | ui::AbstractGridView & | view, |
| asset_system::AssetRepresentation & | asset ) |
Definition at line 376 of file asset_shelf_asset_view.cc.
References blender::ui::AbstractViewItemDragController::AbstractViewItemDragController(), and view.
|
overridevirtual |
Implements blender::ui::AbstractViewItemDragController.
Definition at line 408 of file asset_shelf_asset_view.cc.
References ASSET_IMPORT_APPEND_REUSE, ASSET_IMPORT_PACK, AssetImportSettings::method, U, AssetImportSettings::use_instance_collections, and WM_drag_create_asset_data().
|
overridevirtual |
Implements blender::ui::AbstractViewItemDragController.
Definition at line 382 of file asset_shelf_asset_view.cc.
References AssetShelfType::drag_operator, blender::ui::AbstractViewItemDragController::get_view(), AssetShelf::type, WM_DRAG_ASSET, and WM_DRAG_ID.
|
overridevirtual |
Called when beginning to drag. Also called when get_drag_type() doesn't return a value, so an arbitrary action can be executed.
Reimplemented from blender::ui::AbstractViewItemDragController.
Definition at line 394 of file asset_shelf_asset_view.cc.
References C, blender::ed::asset::shelf::create_asset_operator_params(), AssetShelfType::drag_operator, blender::ui::AbstractViewItemDragController::get_view(), AssetShelf::type, WM_operator_name_call_ptr(), and WM_operator_properties_free().