Blender V4.3
ED_asset_catalog.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
18#pragma once
19
20#include <optional>
21
22#include "AS_asset_catalog.hh"
23
24#include "BLI_string_ref.hh"
25
26struct Main;
27
29
31
38
43[[nodiscard]] bool catalogs_read_only(const asset_system::AssetLibrary &library);
44
46 StringRefNull name,
47 StringRef parent_path = nullptr);
49 const asset_system::CatalogID &catalog_id);
50
52 asset_system::CatalogID catalog_id,
53 StringRefNull new_name);
66 asset_system::CatalogID src_catalog_id,
67 std::optional<asset_system::CatalogID> dst_parent_catalog_id = std::nullopt);
68
69} // namespace blender::ed::asset
void catalog_remove(asset_system::AssetLibrary *library, const asset_system::CatalogID &catalog_id)
bool catalogs_read_only(const asset_system::AssetLibrary &library)
void catalogs_save_from_main_path(asset_system::AssetLibrary *library, const Main *bmain)
asset_system::AssetCatalog * catalog_add(asset_system::AssetLibrary *library, StringRefNull name, StringRef parent_path=nullptr)
void catalog_move(asset_system::AssetLibrary *library, asset_system::CatalogID src_catalog_id, std::optional< asset_system::CatalogID > dst_parent_catalog_id=std::nullopt)
void catalogs_set_save_catalogs_when_file_is_saved(bool should_save)
void catalog_rename(asset_system::AssetLibrary *library, asset_system::CatalogID catalog_id, StringRefNull new_name)
Universally Unique Identifier according to RFC4122.