Blender V5.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
10
11#pragma once
12
13#include <optional>
14
15#include "DNA_listBase.h"
16
17#include "BLI_function_ref.hh"
19#include "BLI_vector.hh"
20
23
24namespace blender {
25
27struct AssetMetaData;
28struct AssetTag;
29struct bContext;
30namespace asset_system {
31class AssetLibrary;
33} // namespace asset_system
34
35namespace ed::asset {
36
40 ListBaseT<AssetTag> tags;
41 uint64_t id_types; /* rna_enum_id_type_filter_items */
42};
43
58
68
71 const AssetLibraryReference &library_ref,
72 FunctionRef<bool(const asset_system::AssetRepresentation &)> is_asset_visible_fn);
74 const AssetLibraryReference &library_ref,
75 const bContext &C,
76 const AssetFilterSettings &filter_settings,
77 FunctionRef<bool(const AssetMetaData &)> meta_data_filter = {},
78 const std::optional<StringRef> skip_prefix = std::nullopt);
79
80} // namespace ed::asset
81} // namespace blender
These structs are the foundation for all linked lists in the library system.
#define C
Definition RandGen.cpp:29
bool filter_matches_asset(const AssetFilterSettings *filter, const asset_system::AssetRepresentation &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={}, const std::optional< StringRef > skip_prefix=std::nullopt)
asset_system::AssetCatalogTree build_filtered_catalog_tree(const asset_system::AssetLibrary &library, const AssetLibraryReference &library_ref, FunctionRef< bool(const asset_system::AssetRepresentation &)> is_asset_visible_fn)
BMesh Iterators.
unsigned __int64 uint64_t
Definition BKE_text.h:91
The meta-data of an asset. By creating and giving this for a data-block (ID.asset_data),...
User defined tag. Currently only used by assets, could be used more often at some point....
MultiValueMap< asset_system::AssetCatalogPath, asset_system::AssetRepresentation * > assets_per_path
Vector< asset_system::AssetRepresentation * > unassigned_assets
asset_system::AssetCatalogTree catalogs