|
Blender V4.5
|
Public Member Functions | |
| asset_system::AssetRepresentation * | get_asset () const |
Public Attributes | |
| FileListInternEntry * | next = nullptr |
| FileListInternEntry * | prev = nullptr |
| FileUID | uid = 0 |
| eFileSel_File_Types | typeflag = eFileSel_File_Types(0) |
| int | blentype = 0 |
| char * | relpath = nullptr |
| char * | redirection_path = nullptr |
| const char * | name = nullptr |
| bool | free_name = false |
| struct { | |
| ID * id = nullptr | |
| PreviewImage * preview_image = nullptr | |
| } | local_data |
| std::weak_ptr< asset_system::AssetRepresentation > | asset |
| bool | blenderlib_has_no_preview = false |
| eFileAttributes | attributes = eFileAttributes(0) |
| BLI_stat_t | st = {0} |
Definition at line 92 of file filelist.cc.
|
inline |
Be careful not to use the returned asset pointer in a context where it might be dangling, e.g. because the file list or the asset library were destroyed.
Definition at line 142 of file filelist.cc.
References asset, and BLI_assert.
Referenced by compare_asset_catalog(), fileentry_uiname(), filelist_entry_get_asset_representation(), filelist_file_create_entry(), and filelist_file_internal_get_asset_data().
| std::weak_ptr<asset_system::AssetRepresentation> FileListInternEntry::asset |
References an asset in the asset library storage. The file list inserts this asset representation into the library, and removes it again when the file list is destructed. In that sense it manages the asset but doesn't own it.
Weak pointer so access is protected in case the asset library gets destructed externally.
Definition at line 129 of file filelist.cc.
Referenced by filelist_intern_entry_free(), filelist_readjob_list_lib_add_datablock(), filelist_readjob_main_assets_add_items(), and get_asset().
| eFileAttributes FileListInternEntry::attributes = eFileAttributes(0) |
Defined in BLI_fileops.h
Definition at line 135 of file filelist.cc.
Referenced by filelist_file_create_entry(), filelist_readjob_list_dir(), filelist_readjob_list_lib_add_datablock(), and is_filtered_hidden().
| bool FileListInternEntry::blenderlib_has_no_preview = false |
Definition at line 132 of file filelist.cc.
Referenced by filelist_file_create_entry(), and filelist_readjob_list_lib_add_datablock().
| int FileListInternEntry::blentype = 0 |
ID type, in case typeflag has FILE_TYPE_BLENDERLIB set.
Definition at line 99 of file filelist.cc.
Referenced by compare_extension(), compare_tiebreaker(), filelist_file_create_entry(), filelist_readjob_list_lib_add_datablock(), filelist_readjob_list_lib_group_create(), filelist_readjob_main_assets_add_items(), is_filtered_lib_type(), and is_filtered_main_assets().
| bool FileListInternEntry::free_name = false |
Definition at line 106 of file filelist.cc.
Referenced by filelist_file_create_entry(), filelist_intern_entry_free(), and filelist_readjob_main_assets_add_items().
When showing local IDs (FILE_MAIN, FILE_MAIN_ASSET), the ID this file entry represents.
Definition at line 115 of file filelist.cc.
Referenced by compare_tiebreaker(), filelist_entry_get_id(), filelist_file_create_entry(), filelist_file_find_id(), filelist_intern_entry_is_main_file(), and filelist_readjob_main_assets_add_items().
| struct { ... } FileListInternEntry::local_data |
This is data from the current main, represented by this file. It's crucial that this is updated correctly on undo, redo and file reading (without UI). The space is responsible to take care of that.
Referenced by compare_tiebreaker(), filelist_cache_previews_push(), filelist_entry_get_id(), filelist_file_create_entry(), filelist_file_find_id(), filelist_intern_entry_is_main_file(), and filelist_readjob_main_assets_add_items().
| const char* FileListInternEntry::name = nullptr |
not strictly needed, but used during sorting, avoids to have to recompute it there...
Definition at line 105 of file filelist.cc.
Referenced by compare_tiebreaker(), filelist_file_create_entry(), filelist_intern_entry_free(), filelist_readjob_main_assets_add_items(), is_filtered_asset(), is_filtered_file_name(), is_filtered_lib_type(), and is_filtered_main_assets().
| FileListInternEntry* FileListInternEntry::next = nullptr |
Definition at line 93 of file filelist.cc.
| FileListInternEntry * FileListInternEntry::prev = nullptr |
Definition at line 93 of file filelist.cc.
| PreviewImage* FileListInternEntry::preview_image = nullptr |
Definition at line 119 of file filelist.cc.
Referenced by filelist_cache_previews_push(), filelist_file_create_entry(), and filelist_readjob_main_assets_add_items().
| char* FileListInternEntry::redirection_path = nullptr |
Optional argument for shortcuts, aliases etc.
Definition at line 103 of file filelist.cc.
Referenced by filelist_file_create_entry(), filelist_intern_entry_free(), and filelist_readjob_list_dir().
| char* FileListInternEntry::relpath = nullptr |
Definition at line 101 of file filelist.cc.
Referenced by compare_direntry_generic(), compare_extension(), fileentry_uiname(), filelist_entry_get_relpath(), filelist_file_create_entry(), filelist_file_find_path(), filelist_intern_entry_free(), filelist_readjob_list_dir(), filelist_readjob_list_lib_add_datablock(), filelist_readjob_list_lib_group_create(), filelist_readjob_list_lib_navigate_to_parent_entry_create(), filelist_readjob_main_assets_add_items(), filelist_readjob_should_recurse_into_entry(), is_filtered_file_relpath(), is_filtered_file_type(), and is_filtered_main().
| BLI_stat_t FileListInternEntry::st = {0} |
Definition at line 136 of file filelist.cc.
Referenced by compare_date(), compare_size(), filelist_file_create_entry(), and filelist_readjob_list_dir().
| eFileSel_File_Types FileListInternEntry::typeflag = eFileSel_File_Types(0) |
Definition at line 97 of file filelist.cc.
Referenced by compare_direntry_generic(), compare_extension(), fileentry_uiname(), filelist_file_create_entry(), filelist_readjob_list_dir(), filelist_readjob_list_lib_add_datablock(), filelist_readjob_list_lib_group_create(), filelist_readjob_list_lib_navigate_to_parent_entry_create(), filelist_readjob_main_assets_add_items(), filelist_readjob_should_recurse_into_entry(), is_filtered_file_type(), is_filtered_hidden(), and is_filtered_lib_type().
| FileUID FileListInternEntry::uid = 0 |
Definition at line 95 of file filelist.cc.
Referenced by filelist_entry_is_selected(), filelist_file_create_entry(), and filelist_readjob_main_assets_add_items().