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

Inherits blender::NonCopyable.

Public Member Functions

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

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 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::AssetLibraryasset_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 83 of file asset_list.cc.

Constructor & Destructor Documentation

◆ AssetList() [1/3]

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

Referenced by AssetList().

◆ AssetList() [2/3]

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

Definition at line 110 of file asset_list.cc.

◆ AssetList() [3/3]

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

References AssetList().

◆ ~AssetList()

blender::ed::asset::list::AssetList::~AssetList ( )
default

References C.

Member Function Documentation

◆ asset_library()

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

Definition at line 190 of file asset_list.cc.

References filelist_asset_library().

◆ clear()

void blender::ed::asset::list::AssetList::clear ( wmWindowManager * wm)

◆ clear_current_file_assets()

◆ ensure_blocking()

void blender::ed::asset::list::AssetList::ensure_blocking ( const bContext & C)

◆ fetch()

◆ is_loaded()

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

Definition at line 185 of file asset_list.cc.

References filelist_is_ready().

◆ 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

Definition at line 180 of file asset_list.cc.

References filelist_needs_force_reset(), and filelist_needs_reading().

◆ remap_id()

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

Definition at line 279 of file asset_list.cc.

References tag_main_data_dirty().

◆ setup()

◆ size()

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

Definition at line 267 of file asset_list.cc.

References filelist_files_ensure().

◆ tag_main_data_dirty()

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

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