|
Blender V4.3
|
#include "AS_asset_representation.hh"#include "DNA_space_types.h"#include "DNA_userdef_types.h"#include "BKE_screen.hh"#include "BLI_string.h"#include "BLI_string_ref.hh"#include "ED_asset.hh"#include "ED_screen.hh"#include "MEM_guardedalloc.h"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "UI_interface.hh"#include "WM_types.hh"#include "interface_intern.hh"Go to the source code of this file.
Classes | |
| struct | AssetViewListData |
Functions | |
| static void | asset_view_item_but_drag_set (uiBut *but, AssetHandle *asset_handle) |
| static void | asset_view_draw_item (uiList *ui_list, const bContext *C, uiLayout *layout, PointerRNA *, PointerRNA *, int, PointerRNA *, const char *, int index, int) |
| static void | asset_view_filter_items (uiList *ui_list, const bContext *C, PointerRNA *dataptr, const char *propname) |
| static void | asset_view_listener (uiList *, wmRegionListenerParams *params) |
| uiListType * | UI_UL_asset_view () |
| static void | populate_asset_collection (const AssetLibraryReference &asset_library_ref, PointerRNA &assets_dataptr, const char *assets_propname) |
| void | uiTemplateAssetView (uiLayout *layout, const bContext *C, const char *list_id, PointerRNA *asset_library_dataptr, const char *asset_library_propname, PointerRNA *assets_dataptr, const char *assets_propname, PointerRNA *active_dataptr, const char *active_propname, const asset::AssetFilterSettings *filter_settings, const int display_flags, const char *activate_opname, PointerRNA *r_activate_op_properties, const char *drag_opname, PointerRNA *r_drag_op_properties) |
|
static |
Definition at line 64 of file interface_template_asset_view.cc.
References blender::ed::asset::list::asset_handle_get_by_index(), AssetViewListData::asset_library_ref, blender::ed::asset::list::asset_preview_ensure_requested(), asset_view_item_but_drag_set(), uiListDyn::custom_drag_optype, uiListDyn::customdata, uiList::dyn_data, uiBut::emboss, AssetHandle::file_data, blender::ed::asset::handle_get_preview_icon_id(), blender::ed::asset::handle_get_representation(), bScreen::id, RNA_pointer_create(), AssetViewListData::screen, AssetViewListData::show_names, UI_BTYPE_PREVIEW_TILE, UI_BUT_ICON_PREVIEW, ui_def_but_icon(), UI_EMBOSS_NONE, UI_HAS_ICON, UI_preview_tile_size_x(), UI_preview_tile_size_y(), UI_preview_tile_size_y_no_label(), uiDefIconTextBut(), uiLayoutGetBlock(), and uiLayoutSetContextPointer().
Referenced by UI_UL_asset_view().
|
static |
Definition at line 115 of file interface_template_asset_view.cc.
References blender::ed::asset::list::asset_get_by_index(), AssetViewListData::asset_library_ref, uiListDyn::customdata, uiList::dyn_data, blender::ed::asset::filter_matches_asset(), AssetViewListData::filter_settings, blender::asset_system::AssetRepresentation::get_name(), UI_list_filter_and_sort_items(), and UI_LIST_ITEM_NEVER_SHOW.
Referenced by UI_UL_asset_view().
|
static |
Definition at line 43 of file interface_template_asset_view.cc.
References blender::ed::asset::list::asset_image_get(), ASSET_IMPORT_APPEND_REUSE, blender::asset_system::AssetRepresentation::get_import_method(), blender::ed::asset::handle_get_preview_icon_id(), blender::ed::asset::handle_get_representation(), blender::asset_system::AssetRepresentation::local_id(), UI_BUT_DRAG_FULL_BUT, UI_but_drag_set_asset(), UI_but_drag_set_id(), and UI_but_dragflag_enable().
Referenced by asset_view_draw_item().
|
static |
Definition at line 148 of file interface_template_asset_view.cc.
References wmNotifier::action, wmNotifier::category, ED_region_tag_redraw(), ELEM, blender::ed::asset::list::listen(), NA_RENAME, NC_ID, params, and blender::ed::asset::list::storage_tag_main_data_dirty().
Referenced by UI_UL_asset_view().
|
static |
Definition at line 178 of file interface_template_asset_view.cc.
References blender::ed::asset::list::iterate(), PROP_COLLECTION, RNA_pointer_create(), RNA_pointer_set(), RNA_property_collection_add(), RNA_property_collection_clear(), RNA_property_pointer_type(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_is_a(), and RNA_warning.
Referenced by uiTemplateAssetView().
| uiListType * UI_UL_asset_view | ( | ) |
Definition at line 166 of file interface_template_asset_view.cc.
References asset_view_draw_item(), asset_view_filter_items(), asset_view_listener(), uiListType::draw_item, uiListType::filter_items, uiListType::idname, uiListType::listener, MEM_callocN, and STRNCPY.
Referenced by ED_uilisttypes_ui().
| void uiTemplateAssetView | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| const char * | list_id, | ||
| PointerRNA * | asset_library_dataptr, | ||
| const char * | asset_library_propname, | ||
| PointerRNA * | assets_dataptr, | ||
| const char * | assets_propname, | ||
| PointerRNA * | active_dataptr, | ||
| const char * | active_propname, | ||
| const asset::AssetFilterSettings * | filter_settings, | ||
| const int | display_flags, | ||
| const char * | activate_opname, | ||
| PointerRNA * | r_activate_op_properties, | ||
| const char * | drag_opname, | ||
| PointerRNA * | r_drag_op_properties ) |
Definition at line 213 of file interface_template_asset_view.cc.
References ASSET_LIBRARY_LOCAL, AssetViewListData::asset_library_ref, col, CTX_wm_screen(), AssetViewListData::filter_settings, blender::ed::asset::library_reference_from_enum_value(), MEM_freeN(), MEM_mallocN, populate_asset_collection(), blender::ed::asset::list::previews_fetch(), ptr, RNA_NO_INDEX, RNA_property_enum_get(), RNA_struct_find_property(), RNA_warning, AssetViewListData::screen, AssetViewListData::show_names, blender::ed::asset::list::size(), blender::ed::asset::list::storage_fetch(), AssetLibraryReference::type, UI_ITEM_NONE, UI_list_custom_activate_operator_set(), UI_list_custom_drag_operator_set(), UI_TEMPLATE_ASSET_DRAW_NO_FILTER, UI_TEMPLATE_ASSET_DRAW_NO_LIBRARY, UI_TEMPLATE_ASSET_DRAW_NO_NAMES, UI_TEMPLATE_LIST_NO_FILTER_OPTIONS, UI_TEMPLATE_LIST_NO_GRIP, UI_TEMPLATE_LIST_NO_NAMES, uiItemFullR(), uiItemO(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetScaleX(), uiLayoutSetScaleY(), UILST_LAYOUT_BIG_PREVIEW_GRID, and uiTemplateList_ex().