|
Blender V5.0
|
Inherits blender::ui::PreviewGridItem.
Definition at line 58 of file asset_shelf_asset_view.cc.
| blender::ed::asset::shelf::AssetViewItem::AssetViewItem | ( | asset_system::AssetRepresentation & | asset_, |
| StringRef | identifier, | ||
| StringRef | label ) |
Definition at line 187 of file asset_shelf_asset_view.cc.
References AssetViewItem(), blender::ui::PreviewGridItem::label, and blender::ui::PreviewGridItem::PreviewGridItem().
Referenced by AssetViewItem().
|
overridevirtual |
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 275 of file asset_shelf_asset_view.cc.
References C, AssetShelfType::draw_context_menu, blender::ui::AbstractGridViewItem::get_view(), and AssetShelf::type.
|
overridevirtual |
Implements blender::ui::AbstractGridViewItem.
Definition at line 220 of file asset_shelf_asset_view.cc.
References AssetShelfType::activate_operator, blender::ed::asset::asset_preview_or_icon(), blender::ed::asset::asset_tooltip(), uiLayout::block(), blender::ui::PreviewGridItem::build_grid_tile_button(), blender::ed::asset::shelf::create_asset_operator_params(), blender::ui::AbstractGridView::get_style(), blender::ui::AbstractGridViewItem::get_view(), blender::ed::asset::list::is_loaded(), uiBut::optype, RNA_pointer_create_discrete(), blender::ui::GridViewStyle::tile_height, blender::ui::GridViewStyle::tile_width, AssetShelf::type, U, UI_but_context_ptr_set(), UI_but_func_tooltip_custom_set(), UI_but_operator_set(), UI_but_operator_set_never_call(), UI_but_view_item_draw_size_set(), blender::ui::AbstractViewItem::view_item_but_, and blender::ui::AbstractViewItem::view_item_button().
|
overridevirtual |
If an item wants to support being dragged, it has to return a drag controller here. That is an object implementing #AbstractViewItemDragController.
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 321 of file asset_shelf_asset_view.cc.
References AssetShelfType::drag_operator, blender::ui::AbstractGridViewItem::get_view(), and AssetShelf::type.
| void blender::ed::asset::shelf::AssetViewItem::disable_asset_drag | ( | ) |
Definition at line 194 of file asset_shelf_asset_view.cc.
Referenced by blender::ed::asset::shelf::AssetView::build_items().
|
overridevirtual |
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 300 of file asset_shelf_asset_view.cc.
References AssetShelfType::activate_operator, C, blender::ed::asset::shelf::create_asset_operator_params(), blender::ui::AbstractGridViewItem::get_view(), AssetShelf::type, WM_operator_name_call_ptr(), and WM_operator_properties_free().
|
overridevirtual |
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 284 of file asset_shelf_asset_view.cc.
References AssetShelfType::get_active_asset, blender::ui::AbstractGridViewItem::get_view(), blender::ui::AbstractGridViewItem::matches(), and AssetShelf::type.
|
overridevirtual |
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 315 of file asset_shelf_asset_view.cc.
References blender::StringRefNull::c_str().