|
Blender V5.3
|
Inherits blender::AssetLibraryListItemCommon.
Inherited by blender::AssetLibraryRepoItem.
Public Member Functions | |
| void | build_row (ui::Layout &row) override |
| void | on_activate (bContext &) override |
| std::optional< bool > | should_be_active () const override |
| AssetLibraryListItemCommon (const AnyAssetLibraryDefinition &library, const int index_in_list) | |
| Public Member Functions inherited from blender::AssetLibraryListItemCommon | |
| AssetLibraryListItemCommon (const AnyAssetLibraryDefinition &library, const int index_in_list) | |
| bool | supports_renaming () const override |
| bool | rename (const bContext &C, StringRefNull new_name) override |
| Public Member Functions inherited from blender::ui::AbstractTreeViewItem | |
| AbstractTreeViewItem () | |
| ~AbstractTreeViewItem () override=default | |
| std::optional< std::string > | debug_name () const override |
| std::unique_ptr< DropTargetInterface > | create_item_drop_target () final |
| virtual std::unique_ptr< TreeViewItemDropTarget > | create_drop_target () |
| AbstractTreeView & | get_tree_view () const |
| std::optional< rctf > | get_win_rect (const ARegion ®ion) const |
| void | begin_renaming () |
| bool | toggle_collapsed () |
| virtual bool | set_collapsed (bool collapsed) |
| virtual void | on_collapse_change (bContext &C, bool is_collapsed) |
| virtual std::optional< bool > | should_be_collapsed () const |
| void | uncollapse_by_default () |
| bool | is_collapsed () const |
| bool | is_collapsible () const |
| int | count_parents () const |
| AbstractTreeViewItem * | get_parent () |
| AbstractTreeViewItem * | get_child () |
| void | on_filter () override |
| StringRefNull | label () const |
| Public Member Functions inherited from blender::ui::AbstractViewItem | |
| virtual | ~AbstractViewItem ()=default |
| virtual void | build_context_menu (bContext &C, Layout &column) const |
| virtual std::optional< bool > | should_be_selected () const |
| virtual void | set_selected (const bool select) |
| void | activate (bContext &C) |
| void | activate_for_context_menu (bContext &C) |
| void | deactivate () |
| virtual std::unique_ptr< AbstractViewItemDragController > | create_drag_controller () const |
| AbstractView & | get_view () const |
| ui::ButtonViewItem * | view_item_button () const |
| void | disable_interaction () |
| bool | is_interactive () const |
| void | disable_activatable () |
| void | select_on_click_set () |
| bool | is_select_on_click () const |
| void | always_reactivate_on_click () |
| void | activate_for_context_menu_set () |
| bool | is_hovered () const |
| bool | is_active () const |
| bool | is_selected () const |
| bool | is_search_highlight () const |
| bool | is_renaming () const |
| void | begin_renaming () |
| void | end_renaming () |
| void | rename_apply (const bContext &C) |
| virtual void | delete_item (bContext *C) |
| bool | is_filtered_visible () const |
| Public Member Functions inherited from blender::ui::TreeViewItemContainer | |
| template<class ItemT, typename... Args> | |
| ItemT & | add_tree_item (Args &&...args) |
| AbstractTreeViewItem & | add_tree_item (std::unique_ptr< AbstractTreeViewItem > item) |
Definition at line 147 of file userpref_asset_libraries_list.cc.
| blender::AssetLibraryListItemCommon::AssetLibraryListItemCommon | ( | const AnyAssetLibraryDefinition & | library, |
| const int | index_in_list ) |
Definition at line 36 of file custom_asset_library_list_ui.cc.
|
inlineoverridevirtual |
Implements blender::ui::AbstractTreeViewItem.
Reimplemented in blender::AssetLibraryRepoItem.
Definition at line 151 of file userpref_asset_libraries_list.cc.
References blender::ui::Layout::active_set(), blender::ui::Layout::alignment_set(), blender::ASSET_LIBRARY_DISABLED, blender::ASSET_LIBRARY_PROJECT_DEFINED, blender::asset_library_repo_is_disabled(), blender::ASSET_LIBRARY_USE_REMOTE_URL, blender::BKE_preferences_asset_library_owner_get(), blender::ui::Layout::enabled_set(), blender::Extension, blender::bUserAssetLibrary::flag, IFACE_, blender::ui::Layout::label(), blender::ui::AbstractTreeViewItem::label_, blender::AssetLibraryListItemCommon::library, blender::ui::Layout::prop(), blender::bUserAssetLibrary::remote_url, blender::ui::Right, blender::RNA_pointer_create_discrete(), blender::ui::Layout::row(), UI_ITEM_NONE, and blender::AnyAssetLibraryDefinition::user_library.
|
inlineoverridevirtual |
Called when the view changes an item's state from inactive to active. Will only be called if the state change is triggered through the view, not through external changes. E.g. a click on an item calls it, a change in the value returned by should_be_active() to reflect an external state change does not.
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 203 of file userpref_asset_libraries_list.cc.
References blender::AssetLibraryListItemCommon::index_in_list, and blender::U.
|
inlineoverridevirtual |
If the result is not empty, it controls whether the item should be active or not, usually depending on the data that the view represents. Note that since this is meant to reflect externally managed state changes, on_activate() will never be called if this returns true.
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 207 of file userpref_asset_libraries_list.cc.
References blender::AssetLibraryListItemCommon::index_in_list, and blender::U.