|
Blender V5.3
|
Inherits blender::ui::AbstractViewItemDragController.
Public Member Functions | |
| LayerViewItemDragController (LayerTreeView &tree_view, GreasePencil &grease_pencil, GreasePencilLayerTreeNode &node) | |
| std::optional< eWM_DragDataType > | get_drag_type () const override |
| void * | create_drag_data () const override |
| void | on_drag_start (bContext &, AbstractViewItem &) 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 172 of file interface_template_grease_pencil_layer_tree.cc.
|
inline |
Definition at line 177 of file interface_template_grease_pencil_layer_tree.cc.
References blender::ui::AbstractViewItemDragController::AbstractViewItemDragController(), node, and blender::gpu::wrap().
|
inlineoverridevirtual |
Implements blender::ui::AbstractViewItemDragController.
Definition at line 194 of file interface_template_grease_pencil_layer_tree.cc.
References blender::wmDragGreasePencilLayer::grease_pencil, blender::MEM_new_zeroed(), and blender::wmDragGreasePencilLayer::node.
|
inlineoverridevirtual |
Implements blender::ui::AbstractViewItemDragController.
Definition at line 186 of file interface_template_grease_pencil_layer_tree.cc.
References blender::WM_DRAG_GREASE_PENCIL_GROUP, and blender::WM_DRAG_GREASE_PENCIL_LAYER.
|
inlineoverridevirtual |
Called when beginning to drag. Also called when get_drag_type() doesn't return a value, so an arbitrary action can be executed.
| item | The item this drag controller was created from. It's passed so it doesn't have to be stored (especially as non-const). |
Reimplemented from blender::ui::AbstractViewItemDragController.
Definition at line 202 of file interface_template_grease_pencil_layer_tree.cc.