Blender V5.0
blender::ed::asset_browser::AssetCatalogTreeView Class Reference

Inherits blender::ui::AbstractTreeView.

Public Member Functions

 AssetCatalogTreeView (asset_system::AssetLibrary *library, FileAssetSelectParams *params, SpaceFile &space_file)
void build_tree () override
void activate_catalog_by_id (CatalogID catalog_id)
Public Member Functions inherited from blender::ui::AbstractTreeView
 ~AbstractTreeView () override=default
void draw_overlays (const ARegion &region, const uiBlock &block) const override
void foreach_item (ItemIterFn iter_fn, IterOptions options=IterOptions::None) const
void foreach_root_item (ItemIterFn iter_fn) const
bool is_fully_visible () const override
void scroll (ViewScrollDirection direction) override
AbstractTreeViewItemfind_hovered (const ARegion &region, const int2 &xy)
void set_default_rows (int default_rows)
Public Member Functions inherited from blender::ui::AbstractView
virtual ~AbstractView ()=default
void register_item (AbstractViewItem &item)
virtual std::unique_ptr< DropTargetInterfacecreate_drop_target ()
virtual bool listen (const wmNotifier &) const
virtual bool begin_filtering (const bContext &C) const
bool is_renaming () const
bool begin_renaming ()
void end_renaming ()
Span< char > get_rename_buffer () const
MutableSpan< char > get_rename_buffer ()
std::optional< rctiget_bounds () const
std::string get_context_menu_title () const
void set_context_menu_title (const std::string &title)
bool get_popup_keep_open () const
void set_popup_keep_open ()
void clear_search_highlight ()
void allow_multiselect_items ()
bool is_multiselect_supported () const
Public Member Functions inherited from blender::ui::TreeViewItemContainer
template<class ItemT, typename... Args>
ItemT & add_tree_item (Args &&...args)
AbstractTreeViewItemadd_tree_item (std::unique_ptr< AbstractTreeViewItem > item)

Friends

class AssetCatalogTreeViewItem
class AssetCatalogDropTarget
class AssetCatalogTreeViewAllItem

Additional Inherited Members

Public Types inherited from blender::ui::TreeViewItemContainer
enum class  IterOptions { None = 0 , SkipCollapsed = 1 << 0 , SkipFiltered = 1 << 1 }
using ItemIterFn = FunctionRef<void(AbstractTreeViewItem &)>
Protected Member Functions inherited from blender::ui::AbstractTreeView
std::optional< uiViewStatepersistent_state () const override
void persistent_state_apply (const uiViewState &state) override
Protected Member Functions inherited from blender::ui::AbstractView
 AbstractView ()=default
virtual void change_state_delayed ()
void update_from_old (uiBlock &new_block)
bool is_reconstructed () const
const AbstractViewItemsearch_highlight_item () const
void filter (std::optional< StringRef > filter_str)
Protected Member Functions inherited from blender::ui::TreeViewItemContainer
void foreach_item_recursive (ItemIterFn iter_fn, IterOptions options=IterOptions::None) const
void foreach_parent (ItemIterFn iter_fn) const
Protected Attributes inherited from blender::ui::TreeViewItemContainer
Vector< std::unique_ptr< AbstractTreeViewItem > > children_
TreeViewItemContainer * root_ = nullptr
AbstractTreeViewItemparent_ = nullptr
bool is_flat_ = false

Detailed Description

Definition at line 47 of file asset_catalog_tree_view.cc.

Constructor & Destructor Documentation

◆ AssetCatalogTreeView()

blender::ed::asset_browser::AssetCatalogTreeView::AssetCatalogTreeView ( asset_system::AssetLibrary * library,
FileAssetSelectParams * params,
SpaceFile & space_file )

Member Function Documentation

◆ activate_catalog_by_id()

◆ build_tree()

void blender::ed::asset_browser::AssetCatalogTreeView::build_tree ( )
overridevirtual

◆ AssetCatalogDropTarget

friend class AssetCatalogDropTarget
friend

Definition at line 55 of file asset_catalog_tree_view.cc.

References AssetCatalogDropTarget.

Referenced by AssetCatalogDropTarget.

◆ AssetCatalogTreeViewAllItem

friend class AssetCatalogTreeViewAllItem
friend

Definition at line 56 of file asset_catalog_tree_view.cc.

References AssetCatalogTreeViewAllItem, and params.

Referenced by AssetCatalogTreeViewAllItem, and build_tree().

◆ AssetCatalogTreeViewItem

friend class AssetCatalogTreeViewItem
friend

Definition at line 54 of file asset_catalog_tree_view.cc.

References AssetCatalogTreeViewItem.

Referenced by AssetCatalogTreeViewItem.


The documentation for this class was generated from the following file: