Blender
V4.3
source
blender
editors
asset
intern
asset_handle.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
#include <string>
10
11
#include "
DNA_space_types.h
"
12
13
#include "
DNA_space_types.h
"
14
15
#include "
ED_fileselect.hh
"
16
17
#include "
ED_asset_handle.hh
"
18
19
namespace
blender::ed::asset
{
20
21
asset_system::AssetRepresentation
*
handle_get_representation
(
const
AssetHandle
*asset)
22
{
23
return
asset->
file_data
->
asset
;
24
}
25
26
int
handle_get_preview_icon_id
(
const
AssetHandle
*asset)
27
{
28
return
asset->
file_data
->
preview_icon_id
;
29
}
30
31
int
handle_get_preview_or_type_icon_id
(
const
AssetHandle
*asset)
32
{
33
return
ED_file_icon
(asset->
file_data
);
34
}
35
36
}
// namespace blender::ed::asset
DNA_space_types.h
ED_asset_handle.hh
ED_fileselect.hh
ED_file_icon
int ED_file_icon(const FileDirEntry *file)
Definition
filelist.cc:1374
blender::asset_system::AssetRepresentation
Definition
AS_asset_representation.hh:34
blender::ed::asset
Definition
ED_asset_catalog.hh:28
blender::ed::asset::handle_get_representation
asset_system::AssetRepresentation * handle_get_representation(const AssetHandle *asset)
Definition
asset_handle.cc:21
blender::ed::asset::handle_get_preview_or_type_icon_id
int handle_get_preview_or_type_icon_id(const AssetHandle *asset)
Definition
asset_handle.cc:31
blender::ed::asset::handle_get_preview_icon_id
int handle_get_preview_icon_id(const AssetHandle *asset)
Definition
asset_handle.cc:26
AssetHandle
Definition
DNA_asset_types.h:206
AssetHandle::file_data
const struct FileDirEntry * file_data
Definition
DNA_asset_types.h:207
FileDirEntry::asset
AssetRepresentationHandle * asset
Definition
DNA_space_types.h:1180
FileDirEntry::preview_icon_id
int preview_icon_id
Definition
DNA_space_types.h:1183
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0