Blender V4.3
ED_asset_filter.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
11#pragma once
12
13#include "BLI_function_ref.hh"
15#include "BLI_vector.hh"
16
19
21struct bContext;
22namespace blender::asset_system {
23class AssetLibrary;
24class AssetRepresentation;
25} // namespace blender::asset_system
26
27namespace blender::ed::asset {
28
32 ListBase tags; /* AssetTag */
33 uint64_t id_types; /* rna_enum_id_type_filter_items */
34};
35
50
60
62 const asset_system::AssetLibrary &library,
63 const AssetLibraryReference &library_ref,
64 blender::FunctionRef<bool(const asset_system::AssetRepresentation &)> is_asset_visible_fn);
66 const AssetLibraryReference &library_ref,
67 const bContext &C,
68 const AssetFilterSettings &filter_settings,
69 FunctionRef<bool(const AssetMetaData &)> meta_data_filter = {});
70
71} // namespace blender::ed::asset
AssetItemTree build_filtered_all_catalog_tree(const AssetLibraryReference &library_ref, const bContext &C, const AssetFilterSettings &filter_settings, FunctionRef< bool(const AssetMetaData &)> meta_data_filter={})
asset_system::AssetCatalogTree build_filtered_catalog_tree(const asset_system::AssetLibrary &library, const AssetLibraryReference &library_ref, blender::FunctionRef< bool(const asset_system::AssetRepresentation &)> is_asset_visible_fn)
bool filter_matches_asset(const AssetFilterSettings *filter, const blender::asset_system::AssetRepresentation &asset)
unsigned __int64 uint64_t
Definition stdint.h:90
The meta-data of an asset. By creating and giving this for a data-block (ID.asset_data),...
MultiValueMap< asset_system::AssetCatalogPath, asset_system::AssetRepresentation * > assets_per_path
Vector< asset_system::AssetRepresentation * > unassigned_assets
asset_system::AssetCatalogTree catalogs