Blender
V3.3
|
#include <UI_abstract_view.hh>
Public Member Functions | |
virtual | ~AbstractViewItemDragController ()=default |
virtual int | get_drag_type () const =0 |
virtual void * | create_drag_data () const =0 |
Drag 'n Drop | |
AbstractViewItemDragController (AbstractView &view) | |
virtual void | on_drag_start () |
template<class ViewType > | |
ViewType & | get_view () const |
Protected Attributes | |
AbstractView & | view_ |
Class to enable dragging a view item. An item can return a drop controller for itself by implementing #AbstractViewItem::create_drag_controller().
Definition at line 207 of file UI_abstract_view.hh.
blender::ui::AbstractViewItemDragController::AbstractViewItemDragController | ( | AbstractView & | view | ) |
Definition at line 183 of file abstract_view_item.cc.
|
virtualdefault |
|
pure virtual |
Implemented in blender::ed::asset_browser::AssetCatalogDragController.
|
pure virtual |
Implemented in blender::ed::asset_browser::AssetCatalogDragController.
|
inline |
Request the view the item is registered for as type #ViewType. Throws a std::bad_cast
exception if the view is not of the requested type.
Definition at line 264 of file UI_abstract_view.hh.
References view_.
|
virtual |
Reimplemented in blender::ed::asset_browser::AssetCatalogDragController.
Definition at line 187 of file abstract_view_item.cc.
|
protected |
Definition at line 209 of file UI_abstract_view.hh.
Referenced by get_view().