Blender  V3.3
Public Member Functions | List of all members
blender::ed::asset::AssetList Class Reference
Inheritance diagram for blender::ed::asset::AssetList:
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 ensurePreviewsJob (bContext *C)
 
void clear (bContext *C)
 
bool needsRefetch () const
 
void iterate (AssetListIterFn fn) const
 
bool listen (const wmNotifier &notifier) const
 
int size () const
 
void tagMainDataDirty () const
 
void remapID (ID *id_old, ID *id_new) const
 
StringRef filepath () const
 

Detailed Description

Definition at line 100 of file asset_list.cc.

Constructor & Destructor Documentation

◆ AssetList() [1/3]

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

◆ AssetList() [2/3]

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

Definition at line 125 of file asset_list.cc.

◆ AssetList() [3/3]

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

◆ ~AssetList()

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

Member Function Documentation

◆ clear()

void blender::ed::asset::AssetList::clear ( bContext C)

◆ ensurePreviewsJob()

void blender::ed::asset::AssetList::ensurePreviewsJob ( bContext C)

◆ fetch()

void blender::ed::asset::AssetList::fetch ( const bContext C)

◆ filepath()

StringRef blender::ed::asset::AssetList::filepath ( ) const

Definition at line 299 of file asset_list.cc.

References filelist_dir().

Referenced by ED_assetlist_library_path().

◆ iterate()

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

Definition at line 196 of file asset_list.cc.

References file, FILE_TYPE_ASSET, filelist_file(), and filelist_files_ensure().

Referenced by ED_assetlist_iterate().

◆ listen()

bool blender::ed::asset::AssetList::listen ( const wmNotifier notifier) const
Returns
True if the asset-list needs a UI redraw.

Definition at line 254 of file asset_list.cc.

References wmNotifier::action, wmNotifier::category, wmNotifier::data, ELEM, NA_ADDED, NA_EDITED, NA_REMOVED, NA_RENAME, NC_ASSET, NC_ID, ND_ASSET_LIST, ND_ASSET_LIST_PREVIEW, and ND_ASSET_LIST_READING.

Referenced by ED_assetlist_listen().

◆ needsRefetch()

bool blender::ed::asset::AssetList::needsRefetch ( ) const

Definition at line 191 of file asset_list.cc.

References filelist_needs_force_reset(), and filelist_needs_reading().

◆ remapID()

void blender::ed::asset::AssetList::remapID ( ID id_old,
ID id_new 
) const

Definition at line 291 of file asset_list.cc.

References tagMainDataDirty().

◆ setup()

void blender::ed::asset::AssetList::setup ( )

◆ size()

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

Definition at line 279 of file asset_list.cc.

References filelist_files_ensure().

Referenced by ED_assetlist_size().

◆ tagMainDataDirty()

void blender::ed::asset::AssetList::tagMainDataDirty ( ) const

Definition at line 284 of file asset_list.cc.

References filelist_needs_reset_on_main_changes(), and filelist_tag_force_reset_mainfiles().

Referenced by remapID().


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