Blender V5.0
ED_asset_list.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
8
9#pragma once
10
11#include "BLI_function_ref.hh"
12
14struct bContext;
15struct ID;
16struct ImBuf;
17struct wmNotifier;
19namespace blender::asset_system {
20class AssetLibrary;
22} // namespace blender::asset_system
23
25
27
37 const AssetLibraryReference &library_reference);
38
41void iterate(const AssetLibraryReference &library_reference, AssetListIterFn fn);
42
51void storage_fetch(const AssetLibraryReference *library_reference, const bContext *C);
57void storage_fetch_blocking(const AssetLibraryReference &library_reference, const bContext &C);
58bool is_loaded(const AssetLibraryReference *library_reference);
64void clear(const AssetLibraryReference *library_reference, const bContext *C);
70void clear_all_library(const bContext *C);
74bool has_list_storage_for_library(const AssetLibraryReference *library_reference);
81 const bContext *C);
94void storage_id_remap(ID *id_old, ID *id_new);
99void storage_exit();
100
104bool listen(const wmNotifier *notifier);
109int size(const AssetLibraryReference *library_reference);
110
111} // namespace blender::ed::asset::list
#define C
Definition RandGen.cpp:29
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
void storage_fetch(const AssetLibraryReference *library_reference, const bContext *C)
void iterate(const AssetLibraryReference &library_reference, AssetListIterFn fn)
int size(const AssetLibraryReference *library_reference)
void storage_id_remap(ID *id_old, ID *id_new)
bool has_asset_browser_storage_for_library(const AssetLibraryReference *library_reference, const bContext *C)
asset_system::AssetLibrary * library_get_once_available(const AssetLibraryReference &library_reference)
void storage_fetch_blocking(const AssetLibraryReference &library_reference, const bContext &C)
void clear(const AssetLibraryReference *library_reference, const bContext *C)
bool listen(const wmNotifier *notifier)
void clear_all_library(const bContext *C)
bool has_list_storage_for_library(const AssetLibraryReference *library_reference)
bool is_loaded(const AssetLibraryReference *library_reference)
FunctionRef< bool(asset_system::AssetRepresentation &)> AssetListIterFn
void asset_reading_region_listen_fn(const wmRegionListenerParams *params)
Definition DNA_ID.h:414