Blender V4.3
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
19namespace blender::ed::asset {
20
25
27{
28 return asset->file_data->preview_icon_id;
29}
30
32{
33 return ED_file_icon(asset->file_data);
34}
35
36} // namespace blender::ed::asset
int ED_file_icon(const FileDirEntry *file)
Definition filelist.cc:1374
asset_system::AssetRepresentation * handle_get_representation(const AssetHandle *asset)
int handle_get_preview_or_type_icon_id(const AssetHandle *asset)
int handle_get_preview_icon_id(const AssetHandle *asset)
const struct FileDirEntry * file_data
AssetRepresentationHandle * asset