Blender V5.3
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#include "BLI_string_ref.hh"
13
14namespace blender {
15
17struct bContext;
18struct ID;
19struct ImBuf;
20struct wmNotifier;
22struct wmWindowManager;
23namespace asset_system {
24class AssetLibrary;
26} // namespace asset_system
27
28namespace ed::asset::list {
29
31
41 const AssetLibraryReference &library_reference);
42
45void iterate(const AssetLibraryReference &library_reference, AssetListIterFn fn);
46
59void storage_fetch(const AssetLibraryReference *library_reference, const bContext *C);
66void storage_fetch_blocking(const AssetLibraryReference &library_reference, const bContext &C);
67bool is_loaded(const AssetLibraryReference *library_reference);
73void clear(const AssetLibraryReference *library_reference, const bContext *C);
79void clear_all_library(const bContext *C);
81 StringRef library_url,
82 StringRef downloaded_file_abspath);
86bool has_list_storage_for_library(const AssetLibraryReference *library_reference);
93 const bContext *C);
106void storage_id_remap(ID *id_old, ID *id_new);
111void storage_exit();
112
116bool listen(const wmNotifier *notifier);
121int size(const AssetLibraryReference *library_reference);
122
123} // namespace ed::asset::list
124} // namespace blender
#define C
Definition RandGen.cpp:29
void storage_fetch(const AssetLibraryReference *library_reference, const bContext *C)
void iterate(const AssetLibraryReference &library_reference, AssetListIterFn fn)
void on_remote_assets_downloaded(wmWindowManager &wm, StringRef library_url, StringRef downloaded_file_abspath)
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)
BMesh Iterators.