|
Blender V5.0
|
Inherits blender::ui::AbstractGridView.
Public Member Functions | |
| AssetView (const AssetLibraryReference &library_ref, const AssetShelf &shelf) | |
| void | build_items () override |
| bool | begin_filtering (const bContext &C) const override |
| void | set_catalog_filter (const std::optional< asset_system::AssetCatalogFilter > &catalog_filter) |
| Public Member Functions inherited from blender::ui::AbstractGridView | |
| AbstractGridView () | |
| ~AbstractGridView () override=default | |
| void | foreach_item (ItemIterFn iter_fn) const |
| void | foreach_filtered_item (ItemIterFn iter_fn) const |
| template<class ItemT, typename... Args> | |
| ItemT & | add_item (Args &&...args) |
| const GridViewStyle & | get_style () const |
| int | get_item_count () const |
| int | get_item_count_filtered () const |
| void | set_tile_size (int tile_width, int tile_height) |
| Public Member Functions inherited from blender::ui::AbstractView | |
| virtual | ~AbstractView ()=default |
| void | register_item (AbstractViewItem &item) |
| virtual std::unique_ptr< DropTargetInterface > | create_drop_target () |
| virtual bool | listen (const wmNotifier &) const |
| virtual void | draw_overlays (const ARegion ®ion, const uiBlock &block) const |
| virtual bool | supports_scrolling () const |
| virtual bool | is_fully_visible () const |
| virtual void | scroll (ViewScrollDirection direction) |
| virtual std::optional< uiViewState > | persistent_state () const |
| virtual void | persistent_state_apply (const uiViewState &state) |
| bool | is_renaming () const |
| bool | begin_renaming () |
| void | end_renaming () |
| Span< char > | get_rename_buffer () const |
| MutableSpan< char > | get_rename_buffer () |
| std::optional< rcti > | get_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 |
Friends | |
| class | AssetViewItem |
| class | AssetDragController |
Additional Inherited Members | |
| Public Types inherited from blender::ui::AbstractGridView | |
| using | ItemIterFn = FunctionRef<void(AbstractGridViewItem &)> |
| 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 AbstractViewItem * | search_highlight_item () const |
| void | filter (std::optional< StringRef > filter_str) |
| Protected Attributes inherited from blender::ui::AbstractGridView | |
| Vector< std::unique_ptr< AbstractGridViewItem > > | items_ |
| std::optional< int > | item_count_filtered_ |
| Map< StringRef, AbstractGridViewItem * > | item_map_ |
| GridViewStyle | style_ |
Definition at line 40 of file asset_shelf_asset_view.cc.
| blender::ed::asset::shelf::AssetView::AssetView | ( | const AssetLibraryReference & | library_ref, |
| const AssetShelf & | shelf ) |
Definition at line 86 of file asset_shelf_asset_view.cc.
|
overridevirtual |
Enable filtering. Typically used to enable a filter text button. Triggered on Ctrl+F by default.
Reimplemented from blender::ui::AbstractView.
Definition at line 146 of file asset_shelf_asset_view.cc.
References begin_filtering(), C, CTX_wm_area(), LISTBASE_FOREACH, ScrArea::regionbase, and UI_textbutton_activate_rna().
Referenced by begin_filtering().
|
overridevirtual |
Implements blender::ui::AbstractGridView.
Definition at line 99 of file asset_shelf_asset_view.cc.
References blender::ui::AbstractViewItem::activate_for_context_menu_set(), blender::ui::AbstractGridView::add_item(), blender::ui::AbstractViewItem::always_reactivate_on_click(), ASSET_SHELF_TYPE_FLAG_ACTIVATE_FOR_CONTEXT_MENU, ASSET_SHELF_TYPE_FLAG_NO_ASSET_DRAG, ASSETSHELF_SHOW_NAMES, AssetViewItem, build_items(), AssetMetaData::catalog_id, blender::ed::asset::shelf::AssetViewItem::disable_asset_drag(), blender::ui::PreviewGridItem::hide_label(), blender::ed::asset::list::iterate(), blender::ed::asset::list::library_get_once_available(), and blender::ui::AbstractViewItem::select_on_click_set().
Referenced by build_items().
| void blender::ed::asset::shelf::AssetView::set_catalog_filter | ( | const std::optional< asset_system::AssetCatalogFilter > & | catalog_filter | ) |
Definition at line 158 of file asset_shelf_asset_view.cc.
References set_catalog_filter().
Referenced by set_catalog_filter().
|
friend |
Definition at line 47 of file asset_shelf_asset_view.cc.
References AssetDragController, and C.
Referenced by AssetDragController.
|
friend |
Definition at line 46 of file asset_shelf_asset_view.cc.
References AssetViewItem.
Referenced by AssetViewItem, and build_items().