Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/UI_tree_view.hh
| Show First 20 Lines • Show All 399 Lines • ▼ Show 20 Lines | public: | ||||
| * returns true, so the implementing override doesn't have to check that again. | * returns true, so the implementing override doesn't have to check that again. | ||||
| * The returned value must be a translated string. | * The returned value must be a translated string. | ||||
| */ | */ | ||||
| virtual std::string drop_tooltip(const wmDrag &drag) const = 0; | virtual std::string drop_tooltip(const wmDrag &drag) const = 0; | ||||
| /** | /** | ||||
| * Execute the logic to apply a drop of the data dragged with \a drag onto/into the item this | * Execute the logic to apply a drop of the data dragged with \a drag onto/into the item this | ||||
| * controller is for. | * controller is for. | ||||
| */ | */ | ||||
| virtual bool on_drop(const wmDrag &drag) = 0; | virtual bool on_drop(struct bContext *C, const wmDrag &drag) = 0; | ||||
| template<class TreeViewType> inline TreeViewType &tree_view() const; | template<class TreeViewType> inline TreeViewType &tree_view() const; | ||||
| }; | }; | ||||
| /** \} */ | /** \} */ | ||||
| /* ---------------------------------------------------------------------- */ | /* ---------------------------------------------------------------------- */ | ||||
| /** \name Predefined Tree-View Item Types | /** \name Predefined Tree-View Item Types | ||||
| ▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines | |||||