Blender V5.3
blender::ed::asset::list::AssetList Class Reference

Inherits blender::blender::NonCopyable.

Public Member Functions

 AssetList ()=delete
 AssetList (AssetList &&other)=default
 ~AssetList ()=default

Public Attributes

FileListWrapper filelist_
AssetLibraryReference library_ref_

Asset list API

Internally re-uses FileList from the File Browser. It does all the heavy lifting already.

 AssetList (eFileSelectType filesel_type, const AssetLibraryReference &asset_library_ref)
void ensure_updated ()
void setup ()
void fetch (const bContext &C)
void ensure_blocking (const bContext &C)
void clear (wmWindowManager *wm)
void clear_current_file_assets (wmWindowManager *wm)
bool needs_refetch () const
bool is_loaded () const
asset_system::AssetLibrary * asset_library () const
void iterate (AssetListIterFn fn) const
int size () const
void tag_main_data_dirty () const
void remap_id (ID *id_old, ID *id_new) const
static bool listen (const wmNotifier &notifier)

Detailed Description

Definition at line 90 of file asset_list.cc.

Constructor & Destructor Documentation

◆ AssetList() [1/3]

blender::ed::asset::list::AssetList::AssetList ( )
delete

◆ AssetList() [2/3]

blender::ed::asset::list::AssetList::AssetList ( eFileSelectType filesel_type,
const AssetLibraryReference & asset_library_ref )

Definition at line 118 of file asset_list.cc.

References filelist_, and library_ref_.

◆ AssetList() [3/3]

blender::ed::asset::list::AssetList::AssetList ( AssetList && other)
default

References AssetList().

◆ ~AssetList()

Member Function Documentation

◆ asset_library()

asset_system::AssetLibrary * blender::ed::asset::list::AssetList::asset_library ( ) const

Definition at line 212 of file asset_list.cc.

References filelist_, and blender::filelist_asset_library().

Referenced by ~AssetList().

◆ clear()

◆ clear_current_file_assets()

◆ ensure_blocking()

◆ ensure_updated()

◆ fetch()

◆ is_loaded()

bool blender::ed::asset::list::AssetList::is_loaded ( ) const

Definition at line 207 of file asset_list.cc.

References filelist_, and blender::filelist_is_ready().

Referenced by ~AssetList().

◆ iterate()

void blender::ed::asset::list::AssetList::iterate ( AssetListIterFn fn) const

◆ listen()

bool blender::ed::asset::list::AssetList::listen ( const wmNotifier & notifier)
static

◆ needs_refetch()

bool blender::ed::asset::list::AssetList::needs_refetch ( ) const

◆ remap_id()

void blender::ed::asset::list::AssetList::remap_id ( ID * id_old,
ID * id_new ) const

Definition at line 306 of file asset_list.cc.

References tag_main_data_dirty().

Referenced by ~AssetList().

◆ setup()

◆ size()

int blender::ed::asset::list::AssetList::size ( ) const
Returns
The number of assets in the list.

Definition at line 289 of file asset_list.cc.

References filelist_, and blender::filelist_files_ensure().

Referenced by ~AssetList().

◆ tag_main_data_dirty()

void blender::ed::asset::list::AssetList::tag_main_data_dirty ( ) const

Member Data Documentation

◆ filelist_

◆ library_ref_

AssetLibraryReference blender::ed::asset::list::AssetList::library_ref_

Definition at line 93 of file asset_list.cc.

Referenced by AssetList(), ensure_updated(), and setup().


The documentation for this class was generated from the following file: