Blender  V3.3
Classes | List of all members
blender::ed::asset_browser::AssetCatalogTreeViewAllItem Class Reference
Inheritance diagram for blender::ed::asset_browser::AssetCatalogTreeViewAllItem:
blender::ui::BasicTreeViewItem blender::ui::AbstractTreeViewItem blender::ui::AbstractViewItem blender::ui::TreeViewItemContainer

Additional Inherited Members

- Public Types inherited from blender::ui::BasicTreeViewItem
using IsActiveFn = std::function< bool()>
 
using ActivateFn = std::function< void(BasicTreeViewItem &new_active)>
 
- Public Types inherited from blender::ui::TreeViewItemContainer
enum class  IterOptions { None = 0 , SkipCollapsed = 1 << 0 }
 
using ItemIterFn = FunctionRef< void(AbstractTreeViewItem &)>
 
- Public Member Functions inherited from blender::ui::BasicTreeViewItem
 BasicTreeViewItem (StringRef label, BIFIconID icon=ICON_NONE)
 
void add_label (uiLayout &layout, StringRefNull label_override="")
 
void set_on_activate_fn (ActivateFn fn)
 
void set_is_active_fn (IsActiveFn fn)
 
- Public Member Functions inherited from blender::ui::AbstractTreeViewItem
virtual ~AbstractTreeViewItem ()=default
 
AbstractTreeViewget_tree_view () const
 
void begin_renaming ()
 
void toggle_collapsed ()
 
void set_collapsed (bool collapsed)
 
bool is_collapsed () const
 
- Public Member Functions inherited from blender::ui::AbstractViewItem
virtual ~AbstractViewItem ()=default
 
virtual void build_context_menu (bContext &C, uiLayout &column) const
 
virtual std::unique_ptr< AbstractViewItemDragControllercreate_drag_controller () const
 
AbstractViewget_view () const
 
bool is_active () const
 
virtual bool supports_renaming () const
 
bool is_renaming () const
 
void begin_renaming ()
 
void end_renaming ()
 
void rename_apply ()
 
- 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)
 
- Static Public Member Functions inherited from blender::ui::AbstractViewItem
template<typename ToType = AbstractViewItem>
static ToType * from_item_handle (uiViewItemHandle *handle)
 
- Public Attributes inherited from blender::ui::BasicTreeViewItem
BIFIconID icon
 
- Protected Member Functions inherited from blender::ui::AbstractTreeViewItem
virtual StringRef get_rename_string () const override
 
virtual bool rename (StringRefNull new_name) override
 
virtual bool supports_collapsing () const
 
virtual bool matches (const AbstractViewItem &other) const override
 
virtual void update_from_old (const AbstractViewItem &old) override
 
virtual bool matches_single (const AbstractTreeViewItem &other) const
 
void activate ()
 
void deactivate ()
 
bool is_hovered () const
 
bool is_collapsible () const
 
void ensure_parents_uncollapsed ()
 
uiButViewItemview_item_button ()
 
- Protected Member Functions inherited from blender::ui::AbstractViewItem
 AbstractViewItem ()=default
 
void add_rename_button (uiBlock &block)
 
- Protected Member Functions inherited from blender::ui::TreeViewItemContainer
void foreach_item_recursive (ItemIterFn iter_fn, IterOptions options=IterOptions::None) const
 
- Protected Attributes inherited from blender::ui::BasicTreeViewItem
ActivateFn activate_fn_
 
IsActiveFn is_active_fn_
 
- Protected Attributes inherited from blender::ui::AbstractTreeViewItem
std::string label_ {}
 
uiButViewItemview_item_but_ = nullptr
 
- Protected Attributes inherited from blender::ui::AbstractViewItem
AbstractViewview_ = nullptr
 
bool is_active_ = false
 
bool is_renaming_ = false
 
- Protected Attributes inherited from blender::ui::TreeViewItemContainer
Vector< std::unique_ptr< AbstractTreeViewItem > > children_
 
TreeViewItemContainerroot_ = nullptr
 
AbstractTreeViewItemparent_ = nullptr
 

Detailed Description

Only reason this isn't just BasicTreeViewItem is to add a '+' icon for adding a root level catalog.

Definition at line 140 of file asset_catalog_tree_view.cc.


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