Blender V4.3
LibraryForeachIDData Struct Reference

Public Member Functions

 BLI_LINKSTACK_DECLARE (ids_todo, ID *)
 

Public Attributes

Mainbmain
 
IDowner_id
 
IDself_id
 
int flag
 
int cb_flag
 
int cb_flag_clear
 
blender::FunctionRef< LibraryIDLinkCallbackcallback
 
void * user_data
 
int status
 
GSetids_handled
 

Detailed Description

Definition at line 33 of file lib_query.cc.

Member Function Documentation

◆ BLI_LINKSTACK_DECLARE()

LibraryForeachIDData::BLI_LINKSTACK_DECLARE ( ids_todo ,
ID *  )

Member Data Documentation

◆ bmain

Main* LibraryForeachIDData::bmain

Definition at line 34 of file lib_query.cc.

Referenced by BKE_library_foreach_subdata_id(), and library_foreach_ID_link().

◆ callback

blender::FunctionRef<LibraryIDLinkCallback> LibraryForeachIDData::callback

Definition at line 55 of file lib_query.cc.

◆ cb_flag

int LibraryForeachIDData::cb_flag

Generic flags to be passed to all callback calls for current processed data.

Definition at line 49 of file lib_query.cc.

Referenced by library_foreach_ID_link().

◆ cb_flag_clear

int LibraryForeachIDData::cb_flag_clear

Callback flags that are forbidden for all callback calls for current processed data.

Definition at line 51 of file lib_query.cc.

Referenced by library_foreach_ID_link().

◆ flag

int LibraryForeachIDData::flag

Flags controlling the behavior of the 'foreach id' looping code.

Definition at line 47 of file lib_query.cc.

◆ ids_handled

GSet* LibraryForeachIDData::ids_handled

Definition at line 62 of file lib_query.cc.

◆ owner_id

ID* LibraryForeachIDData::owner_id

'Real' ID, the one that might be in bmain, only differs from self_id when the later is a private one.

Definition at line 39 of file lib_query.cc.

◆ self_id

ID* LibraryForeachIDData::self_id

ID from which the current ID pointer is being processed. It may be an embedded ID like master collection or root node tree.

Definition at line 44 of file lib_query.cc.

◆ status

int LibraryForeachIDData::status

Store the returned value from the callback, to decide how to continue the processing of ID pointers for current data.

Definition at line 59 of file lib_query.cc.

◆ user_data

void* LibraryForeachIDData::user_data

Definition at line 56 of file lib_query.cc.


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