Blender V5.3
ED_userpref.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 <optional>
12
13#include "BLI_uuid.hh"
14#include "BLI_vector.hh"
15
16#include "RNA_types.hh"
17
18#include "UI_resources.hh"
19
20namespace blender {
21
22/* Structs */
23struct SpaceUserPref;
24
26
29void ED_userpref_search_string_set(SpaceUserPref *sprefs, const char *value);
32
34 Remote = 0,
35 Local = 1,
36};
37
39extern const EnumPropertyItem custom_library_type_items[];
40
42 const char *name,
43 const char *dirpath,
44 bUserAssetLibraryAddType library_type,
45 bool is_project_defined,
46 std::optional<UUID> uuid,
47 std::optional<char *> auth_token);
49
53
54} // namespace blender
#define C
Definition RandGen.cpp:29
BMesh Iterators.
bUserAssetLibraryAddType
const EnumPropertyItem custom_library_type_items[]
bool ED_userpref_tab_has_search_result(SpaceUserPref *sprefs, int index)
void ED_operatortypes_userpref()
void ED_userpref_asset_library_remove(bContext *C, struct bUserAssetLibrary *asset_library)
struct bUserAssetLibrary * ED_userpref_asset_library_new(const struct bContext *C, const char *name, const char *dirpath, bUserAssetLibraryAddType library_type, bool is_project_defined, std::optional< UUID > uuid, std::optional< char * > auth_token)
Vector< int > ED_userpref_tabs_list(SpaceUserPref *prefs)
const char * ED_userpref_search_string_get(SpaceUserPref *sprefs)
int ED_userpref_search_string_length(SpaceUserPref *sprefs)
void ED_userpref_search_string_set(SpaceUserPref *sprefs, const char *value)
void ED_userpref_asset_library_active_set(const struct bUserAssetLibrary &asset_library)
struct bUserAssetLibrary * ED_userpref_asset_library_active_get()