Blender V5.0
ED_asset_library.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#include "DNA_asset_types.h"
14
16struct bContext;
18struct EnumPropertyItem;
20
21namespace blender::asset_system {
22class AssetCatalog;
25} // namespace blender::asset_system
26
27namespace blender::ed::asset {
28
50const EnumPropertyItem *library_reference_to_rna_enum_itemf(bool include_readonly,
51 bool include_current_file);
56const EnumPropertyItem *custom_libraries_rna_enum_itemf();
57
61blender::asset_system::AssetCatalog &library_ensure_catalogs_in_path(
62 blender::asset_system::AssetLibrary &library,
63 const blender::asset_system::AssetCatalogPath &path);
64
66
70void refresh_asset_library(const bContext *C, const AssetLibraryReference &library_ref);
71void refresh_asset_library(const bContext *C, const bUserAssetLibrary &user_library);
72void refresh_asset_library_from_asset(const bContext *C,
73 const blender::asset_system::AssetRepresentation &asset);
74
75} // namespace blender::ed::asset
struct AssetLibraryReference AssetLibraryReference
struct bUserAssetLibrary bUserAssetLibrary
#define C
Definition RandGen.cpp:29
int library_reference_to_enum_value(const AssetLibraryReference *library)
const EnumPropertyItem * library_reference_to_rna_enum_itemf(bool include_readonly, bool include_current_file)
void refresh_asset_library(const bContext *C, const AssetLibraryReference &library_ref)
AssetLibraryReference library_reference_from_enum_value(int value)
const EnumPropertyItem * custom_libraries_rna_enum_itemf()
void refresh_asset_library_from_asset(const bContext *C, const blender::asset_system::AssetRepresentation &asset)
AssetLibraryReference user_library_to_library_ref(const bUserAssetLibrary &user_library)
blender::asset_system::AssetCatalog & library_ensure_catalogs_in_path(blender::asset_system::AssetLibrary &library, const blender::asset_system::AssetCatalogPath &path)